#evan_09475

1 messages · Page 1 of 1 (latest)

cold crownBOT
unique breach
#

Hi there 👋 can you share the ID of a request where you encountered that error?

twin flicker
#

req_3QlYVg6F8ycEu9

#

this is what am doing

     const {
        status,
        // eslint-disable-next-line camelcase
        client_secret
      } = await this.stripeGateway.paymentIntents.confirm(
        subscriptionStatus.latest_invoice.payment_intent.id,
        {
          payment_method: paymentObj.paymentMethodId,
          mandate_data: {
            customer_acceptance: {
              type: 'online',
              online: {
                ip_address: ip,
                user_agent: userAgent
              }
            }
          },
          return_url: 'my url goes here
'
        }
      )


unique breach
#

Thank you. I don't see a return_url being provided there, but since you're creating a Subscription I don't think there is a good parameter to use to pass that value. I need to take a closer look at how to use Subscriptions with the payment method you're trying to use.

#

Is this a recently surfacing error in a flow that used to work?

twin flicker
#

When I use google pay or normal card info, it works fine

#

Only paypal is not working

unique breach
#

Gotcha. There are a couple things that I would like you to try that we can step through.

The first thing, is that I noticed your request doesn't explicitly pass off_session when creating the Subscription. Can you try adding that parameter to your Subscription creation request, setting it to true?

twin flicker
#

alright

unique breach
#

If that doesn't resolve the error being encountered during Subscription creation, can you try setting payment_behavior to default_incomplete?

twin flicker
#

when i set off_session to true, it worked but the payment is incomplete

cold crownBOT
unique breach
#

Gotcha, taking a look.