#artdudejoe
1 messages ยท Page 1 of 1 (latest)
Yep! Let me know if this is what you're looking for: https://stripe.com/docs/terminal/features/saving-cards/overview#charging-saved-card
Nope. That article is way before what I am doing.
I am trying to pay with a card captured from a reader. Paying once with the card present and then again later when it is not.
If I set the payment_method_types to 'card_present' (it won't work without this) using it later does not.
When trying to charge a card (at a later date) that was captured from a reader, you should use payment_method_types: card when creating the off-session PaymentIntent
Ok, so the error message reference to payment_method_data is really about payment_method_types and redeclaring that.
BTW: that did not work.
I am trying to figure out what "You may only use this PaymentMethod type by providing it via payment_method_data on a new PaymentIntent." means.
Can you share the request ID associated with that error? It should look like req_...
Yeah. Let me dig for it
Not finding it in the dashboard
Here it is req_9JVmBI8dfLv8Yz
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thanks! I see the PaymentMethod you're trying to use was indeed collected as part of a PaymentIntent that used setup_future_usage: "off_session"
Yep. That's what I was told to do to make this possible.
Any idea why it's not working?
Hi ๐
Can you share the request ID where you create the payment intent only specifying payment_method_types=[card] and confirm using the Terminal?
I'm referring to this code snippet specifically:
https://stripe.com/docs/terminal/features/saving-cards/save-after-payment#server-side
Sure. Give me sec
Intent prior to reader: req_AFNIH3rSiSu3dj
handoff paymentIntent to reader: req_AorEwBpOxEMJyu
confirmation of PaymentIntent where I got the paymentMethod ID: req_PjVQfxjFPyg4Ac
No sorry. The issue I think we are hitting is that you list both card and card_present payment methods as options. In the code snippet for saving cards for future use they only list card. I suspect that may be the problem here.
Yeah. The original PaymentIntent I must set it to card_present but the next usage is card.
The error message indicates something about the payment_method_data
You cannot re-use a payment method that is set to card_present AFAIK.
At least not on a Payment Intent
SO, I cannot capture a payment (via paymentIntent then the reader) and THEN save the resulting paymentMethodID from that intent and use it for card not present transactions.
?
Hold on, gimme a sec to repro
K
Perfect timing to have to install a system update ๐
Dang!
Alright so I created a PM using setup_future_usage:'off_session' but with both ['card', 'card_present']. The resulting PM has a type of card_present
I'm going to try to charge it off-session now
The initial payment that created the Payment Method, yes
but not the second one where we attempt to charge the existing payment method
Yes.
My colleague just pointed out that the PM we need to retrieve is the generated_card from the Charge object. You ca see that property here: https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-generated_card
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.