#greggles_unexpected
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215749088298008637
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
So you're saying the customer can't complete payment with cashapp?
Do you have a screenshot?
There is no payment to complete. I want the customer to be able to update their method of payment so I'm instantiating the payment element with the following options
const options = {
mode: 'setup',
currency: 'usd',
appearance: appearance,
paymentMethodCreation: 'manual'
};
I don't understand the problem
Can you share a screenshot of what's happening when you select cashapp
{
"id": "pm_1Os9HvGxG8m2870Uoj1RqGsr",
"object": "payment_method",
"billing_details": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": null,
"name": "New Name",
"phone": null
},
"cashapp": {
"buyer_id": null,
"cashtag": null
},
"created": 1709926863,
"customer": null,
"livemode": false,
"type": "cashapp"
}
A screenshot isn't going to convey the problem. Here is the customer object on which I'm testing.
cus_PhXP4A8gITl2PE
CashApp is set as the default payment method but I don't believe that a CashApp account is associated.
In the object above:
"cashapp": {
"buyer_id": null,
"cashtag": null
},
Because the cashapp object properties are null
You said CashApp can be selected but the intermediate CashApp modal does not appear. . What does this mean though? Are you able to add the cashapp payment method?
In the regular payment flow, if you select cashapp as a payment method, an intermediate modal appears with a QR code, You scan that QR code and use the CashApp app to complete the purchase. The buyer's CashApp account is associated with the payment method in this way.
I want to be able to change the payment method. I can select CashApp, but when I submit, CashApp is added as a payment method, but there's no CashApp account on the user side that's associated with that payment method.
Why don't you use a setupintent if all you're trying to do is have a customer to be able to update their method of payment. I suspect it's due to just creating a payment method without setting it up for future use, but I haven't had a ton of experience integrating cashapp. SetupIntents should always be used for saving a payment method without making a payment
That’s great direction. I’ll try that.
You can follow this guide: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements