Guest User

Untitled

a guest
Jun 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. def credit_card
  2. @credit_card ||= ActiveMerchant::Billing::CreditCard.new(
  3. :type => card_type,
  4. :number => card_number,
  5. :verification_value => card_verification,
  6. :month => card_expires_on.month,
  7. :year => card_expires_on.year,
  8. :first_name => first_name,
  9. :last_name => last_name,
  10. :billing_address => billing_address,
  11. :billing_city => billing_city,
  12. :billing_state => billing_state,
  13. :billing_zip => billing_zip
  14. )
  15. end
  16. end
Add Comment
Please, Sign In to add comment