#Iyyappan
1 messages · Page 1 of 1 (latest)
Hi there!
Pasting your other message in this thread:
Error Objects:
{
"code": "Failed",
"declineCode": null,
"localizedMessage": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"message": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"stripeErrorCode": null,
"type": null,
}
Yes
Can you share the PaymentIntent ID that generated this error?
Please be patient, I'm helping multiple users on Discord at the same time.
okay sure
I don't see any error with the PaymentIntent itself. Can you share more information about the error you see?
- Does it happen when you call
initPaymentSheet? - Can you share the full stack trace error?
i'm geting this error in the
const { error } = await presentPaymentSheet();
{
"code": "Failed",
"declineCode": null,
"localizedMessage": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"message": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"stripeErrorCode": null,
"type": null,
}
That's the only error message you see? There's nothing else?
yes the payment sheet no showing in the mobile
only loading after i will get this error
In your logs there's no other error message? What's the full stack trace?
No I'm not get any error.
Actually I have integrated the AfterPay for the testing in our project. But the Card, Google Pay, Apple Pay payments is showing good. But the AfterPay is not showing.
First I was initiate the payment sheet. After I click the that Orange Button I call the presentPaymentSheet. After I will get this errors.
👋 taking over for my colleague. Let me catch up.
Hi
is this related to the same PaymentIntent id you shared earlier?
Yes
pi_3LzddOCh0aVQteBp0mNShBeq
My issue is presentPaymentSheet()
i'm geting this error in the
const { error } = await presentPaymentSheet();
{
"code": "Failed",
"declineCode": null,
"localizedMessage": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"message": "The operation couldn’t be completed. (Stripe.PaymentSheetError error 1.)",
"stripeErrorCode": null,
"type": null,
}
Hi
still looking into this, please be patient, will be there with you shortly
@broken flower not sure if you wrote in to support like I asked you to yesterday, but the problem with Afterpay in the sheet not showing up is because you need to also request the shipping address, it's required for that payment method but not well-documented
You mean shipping address required in the StripePayment intent create api?
I believe so yes
I tried but it's not working.
const paymentIntent = await stripe.paymentIntents.create({
amount: 1099,
currency: 'cad',
payment_method_types: ['afterpay_clearpay'],
shipping: {
name: 'Jenny Rosen',
address: {
line1: '1234 Main Street',
city: 'San Francisco',
state: 'CA',
country: 'US',
postal_code: '94111',
},
},
payment_method_options: {
afterpay_clearpay: {
reference: 'order_123',
},
},
});
I just tried and it did work
let pi = await stripe.paymentIntents.create({
amount: 1000,
currency: 'usd',
customer:customer.id,
payment_method_types: ['card', 'afterpay_clearpay', "alipay","wechat", "us_bank_account"],
shipping:{
name:"Jane Doe",
address:{
line1:"510 Townsend Street",
city:"San Francisco",
state:"CA",
country:"US",
postal_code:"90210",
}
},
payment_method_options: {
afterpay_clearpay: {
reference: 'order_123',
},
},
});
I'm pretty sure your problem is that you are not passing card to the payment_method_types, you need that since card has to always be an option I think
I have another doubt. It's possible to test AfterPay in India?
I don't see why not
I have just confirm again the shipping address is required in the AfterPay integration right?
right
Thanks for the helping. I will check.