#nita1234_api

1 messages ¡ Page 1 of 1 (latest)

fluid sleetBOT
#

👋 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/1421127861544292414

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

coarse gorge
foggy escarp
#

Can you share the Payment Intent ID involved here as well as the code you're using to initialize Elements and the Express Checkout Element?

foggy escarp
#

So that's a subscription payment intent

coarse gorge
#

initPaymentRequest(currency, amount) {
const { stripe } = store.getters;

const appearance = {
  theme: 'stripe',
  variables: {
    borderRadius: '36px'
  }
};

const expressCheckoutOptions = {
  buttonHeight: 50,
  buttonTheme: {
    applePay: 'white-outline'
  }
};

this.expressCheckoutElements = stripe.elements({
  mode: 'payment',
  amount: amount || 0,
  currency,
  appearance
});

this.paymentElement = this.expressCheckoutElements.create(
  'expressCheckout',
  expressCheckoutOptions
);
this.paymentElement.mount('#express-checkout-button');

this.paymentElement.on('confirm', async (ev) => {
  try {
    console.log('on confirm event', ev);
    this.paymentType = 'wallet';
    this.walletType = ev.expressPaymentType;

    if (this.onValidateCallback) this.onValidateCallback();
    if (this.onConfirmCallback) this.onConfirmCallback();
  } catch (err) {
    console.error('Express Checkout confirm error:', err);
    return this.paymentErrorResponse(err);
  }
});

}

foggy escarp
#

It has off_session set on it because of that

#

Looks like you are initializing the deferred intent flow in your elements code

coarse gorge
#

yes because i am usign the same logic as with paying with card should it be different?

foggy escarp
#

But the code doesn't really make sense

#

You have set it to payment mode

#

Are you really using the deferred intent flow?

#

Do you wait to create the subscription until after the customer has filled out their card details?

#

Or do you create it on form load

coarse gorge
#

After they have filled their card details i create the subscription

foggy escarp
#

Ok well you should change mode to 'subscription' then

#

That's the issue here

coarse gorge
#

Let me try please

#

I am trying to purchase a recurring subscription with Paypal

#

And i am using Express Checkout

foggy escarp
#

Yes I can see that from the code

coarse gorge
#

Would the implementation from the provided link work for all types of wallets? Ex: google/apple pay?

foggy escarp
#

It would work for all payment methods that support subscriptions, yes

fluid sleetBOT
coarse gorge
dusk belfry
#

Hi there, taking over for @foggy escarp as they had to step away

#

Give me a moment to catch up on the conversation

coarse gorge
#

Okay

dusk belfry
#

Is the question here why google and apple pay are not showing up in that screenshot?

coarse gorge
#

It seems like something is missing i can not select the card on Paypal I only see that text from the image i sent you

dusk belfry
#

The message in the screenshot says "After submission, you will be redirected to securely complete next steps." Are you saying you aren't able to submit?

peak bolt
#

Hi, we are trying to integrate paypal in our current implementation. Right now on server-side we are working with the Advanced Integration, while on client-side we are using iframe inputs, we are struggling to find the way to integrate paypal into are current implementation. Can you please send us any link or give us any advice that can help us. We already connected Paypal in Stripe Dashboard.

#

We already tried using express checkout but we cannot figure out why that error is ocurring.

dusk belfry
peak bolt
#

yes it did

dusk belfry
#

So it looks like the error from the initial question has been resolved. From the screenshot, it looks like Paypal is showing up in the frontend. Can you explain exactly what the unexpected behavior is? There doesn't appear to be anything wrong from the screenshot that you shared

peak bolt
#

After submission of what ?

dusk belfry
#

The form. Can you share the screenshot of the whole page so I can better understand what you're seeing?

coarse gorge
#

Thats all we got

#

We do not have any form

dusk belfry
#

There's nothing else on the page? Can you share the JavaScript code you used to generate this frontend?

peak bolt
#

should we confirm Payment at this point with the client secret we got and then the user will be redirected ?

#

and also for paypal subscriptions should we use the client secret from the Pending Setup Intent or Latest Invoice ?

dusk belfry
copper crown
#

i tried to contact the support but nothing happen, i have 12k on hold, i was wondering if you know someone to contact that can review my case faster, i understand that you have alot of message like this but, it's two day that i don't eat so please help me.
they just suspended my account because my store was running closure sale
account name: tilma
mail: customerassistance936@gmail.com
also, if i open my stripe's dashboard they say that i have to attached some documents but when i click on them they say that to know what they are i need to contact the support, so it's a infinite loop

dusk belfry
#

@copper crown this isn't your thread, please open a separate thread

peak bolt
#

Right now our frontend left so we are gonna reach out tomorrow, there was a submit button but it wasnt clickable

#

we thought there is smthng missing

#

anyways we are gonna reach you tomrrow again, thank you for the help