0
I’m trying to sign up a user with the credit card details so I can make subsequent charges to customers. Registration is done on Yugu, but credit card details are not recorded on Yugu. I am using the calls below.
Has anyone done this kind of implementation before?
Thank you.
customer = Iugu::Customer.create(email: @usuario.email, name: @usuario.nome_cartao)
Iugu::Subscription.create(plan_identifier: 'cadastro_cartao', payable_with: "credit_card", name: @usuario.nome_cartao, number: @usuario.cartao.delete(' '), verification_value: @usuario.cvv, month: @usuario.validade[0..1], year: @usuario.validade[2..6], customer_id: customer.id)