Open danieljaouen opened 4 years ago
I've gotten a bit further with this issue. Apparently Gringotts.store
returns a map containing an id
for a customer
, but it doesn't save the card it was called with (the cards
entry in the returned map has %{"count" => 0}
.
The error I see now is:
Cannot charge a customer that has no active card
As far as I can tell, Gringotts.store
is storing neither the credit card nor the address I'm feeding into it. Is this a bug?
Ideally, Gringotts.store
would store both the credit card (as the customer's default) and the address in a new customer, and Gringotts.unstore
would fetch the customer_id, the credit card, and the address (perhaps in a map?), and then subsequently delete the customer via Stripe's API.
Then Gringotts.authorize
and Gringotts.capture
would just take an additional [customer: customer_id]
in the opts list.
I am trying to use the Stripe gateway. However, I am seeing an error that I cannot resolve:
It seems to revolve around this
Must provide source or customer.
error.Any help?