I'm trying to sign up for a user with my credit card details so I can bill my customers for later. Registration is done in Iugu, but the credit card details are not registered in Iugu. I'm 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)