You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here I am trying to add new card to the customer but there is no way to add it. As per your documentation we have two methods to update customer details one is #update_customer(customer_id, options = {}) ⇒ Object and #update(customer_id, card_id, options = {}) ⇒ Object.
But here if I have new card then I don't have card_id for that so second method will not work.
c = stripe_gateway.store 'tok_es', email: "[email protected]", set_default: true ==> Create new customer: (this will create new customer and set default card details to this customer)
stripe_gateway.update_customer(cust_id, default_source: token) ==>
Update default card details: (This will delete the old default card and update new card details)
stripe_gateway.update(cust_id, card_id) ==>
This will update customer with default card_id
So now I need to add normal card not default card then how can I manage this?
Here I am trying to add new card to the customer but there is no way to add it. As per your documentation we have two methods to update customer details one is
#update_customer(customer_id, options = {}) ⇒ Object
and#update(customer_id, card_id, options = {}) ⇒ Object
.But here if I have new card then I don't have card_id for that so second method will not work.
c = stripe_gateway.store 'tok_es', email: "[email protected]", set_default: true
==> Create new customer: (this will create new customer and set default card details to this customer)stripe_gateway.update_customer(cust_id, default_source: token)
==>Update default card details: (This will delete the old default card and update new card details)
stripe_gateway.update(cust_id, card_id)
==>This will update customer with default card_id
So now I need to add normal card not default card then how can I manage this?
If you will see Stripe documentation
The text was updated successfully, but these errors were encountered: