#Iyyappan

1 messages · Page 1 of 1 (latest)

pearl muskBOT
deft mulch
#

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,
}

broken flower
#

Yes

deft mulch
#

Can you share the PaymentIntent ID that generated this error?

broken flower
#

pi_3LzddOCh0aVQteBp0mNShBeq

#

hi

#

hi there?

deft mulch
#

Please be patient, I'm helping multiple users on Discord at the same time.

broken flower
#

okay sure

deft mulch
#

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?
broken flower
#

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,
}

deft mulch
#

That's the only error message you see? There's nothing else?

broken flower
#

yes the payment sheet no showing in the mobile

#

only loading after i will get this error

deft mulch
#

In your logs there's no other error message? What's the full stack trace?

broken flower
#

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.

foggy parcel
#

👋 taking over for my colleague. Let me catch up.

broken flower
#

Hi

foggy parcel
broken flower
#

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

foggy parcel
#

still looking into this, please be patient, will be there with you shortly

olive copper
#

@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

broken flower
#

You mean shipping address required in the StripePayment intent create api?

olive copper
#

I believe so yes

broken flower
#

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',
},
},
});

olive copper
#

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

broken flower
#

I have another doubt. It's possible to test AfterPay in India?

olive copper
#

I don't see why not

broken flower
#

I have just confirm again the shipping address is required in the AfterPay integration right?

olive copper
#

right

broken flower
#

Thanks for the helping. I will check.