#tienbt_api

1 messages ยท Page 1 of 1 (latest)

cursive impBOT
#

๐Ÿ‘‹ 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/1217070811316490321

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

stoic aspenBOT
#

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.

upper bramble
#

Hello

#

Nice to meet yoiu

#

you

stoic aspenBOT
mortal dagger
#

hi! hello! how can I help?

upper bramble
#

I am using 3ds for creating payment intent.

#

I am developing in php and vuejs

#

I have one api to create payment intent with param request_three_d_secure = any and create a transaction pending in my system.

#

When click button checkout FE will call this API and open screen pay now and use payment element to display card input part.

#

After input card, FE will call confirm payment.

#

FE use this code.

#

What does this param mean?

#

Please help me check this. Thanks/

mortal dagger
#

that param means that if 3D Secure is required, we will not present the popup for it automatically. Instead you would have to call another function to do that.

#

Overall I wouldn't really recommend using the parameter. What guide are you using, what page is that in the docs from your screenshot, what's the URL?

upper bramble
#

Can you send me a link for reference?

mortal dagger
#

A link for what exactly?

upper bramble
#

confirmCardPayment for FE

mortal dagger
#

note that confirmCardPayment is only relevant if you're using the CardElement, but usually we suggest using the PaymentElement component instead.

upper bramble
#

we are using PaymentElement

mortal dagger
#

great! then you would use confirmPayment , not confirmCardPayment

upper bramble
#

Yes, what I'm wondering is that my system's transaction has 3 statuses: success, failure, and pending

mortal dagger
# upper bramble FE use this code.

I don't know what page this guide is from(I asked but you did not reply) but it seems to be an older guide for CardElement so it's not relevant

upper bramble
#

It here is using card element.

mortal dagger
#

do you need to use a manual redirect?

#

why not just use the default(Stripe will show a popup for 3D Secure for you when you call confirmPayment)?

upper bramble
#

Is there any link for instructions on this please let me have it.

mortal dagger
#

sorry, instructions on what exactly?

upper bramble
#

use the default(Stripe will show a popup for 3D Secure for you when you call confirmPayment)

#

about this

cursive impBOT
sinful bane
#

Hey! Taking over for my colleague. Let me catch up.

upper bramble
#

Hi @sinful bane

sinful bane
#

What clarficiation are you looking for exactly ? and what limitation are you facing with that integration ?

upper bramble
#

I use 3ds and still use this link, is that right?

#

I'm having problems with 3ds processing

sinful bane
#

What you mean by "use 3ds" ?

upper bramble
#

3d secure

sinful bane
upper bramble
#

I have one api to create payment intent with param request_three_d_secure = any and create a transaction pending in my system.

sinful bane
# upper bramble 3d secure

No, I meant what you mean by you use 3d secure ? 3d secure is requested by the bank issuer when they judge is required in order to complete the payment

sinful bane
upper bramble
#

Because I want it to apply 3d secure to our payment

sinful bane
#

Nice.

upper bramble
upper bramble
#

After create payment intent, we will this confirm payment intent

#

After create payment intent, we will confirm this payment intent

#

and response will have next_action

#

is it right?

#

and we use iframe to display this next_action.url

sinful bane
#

No you don't need to do that.

#

You can use Stripe Element and confirm the payment_intent using confirmPayment.

#

You simply need to follow that guide step by step

upper bramble
#

So how do we use 3D Secure in our payments?

sinful bane
#

When creating the PaymentIntent you can simply add the param request_three_d_secure = any

#

Stripe Element will handle the 3Ds for you without any additional action from your side

upper bramble
#

Yes. I understand.

#

const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});

#

If I use this then when i click complete it will automatically go to redirect_url is that right?

sinful bane
#

it will handle for you any 3ds action yes

upper bramble
#

Yes

#

if (error) {
// This point will only be reached if there is an immediate error when
// confirming the payment. Show error to your customer (for example, payment
// details incomplete)
const messageContainer = document.querySelector('#error-message');
messageContainer.textContent = error.message;
} else {
// Your customer will be redirected to your return_url. For some payment
// methods like iDEAL, your customer will be redirected to an intermediate
// site first to authorize the payment, then redirected to the return_url.
}

#

Is it correct that we use this snippet to handle errors?

sinful bane
#

Yes that sounds reasonable

upper bramble
#

I will describe my system. I will create a payment intent and at the same time create a transaction with pending status on my system side.

#

My system's transaction has 3 statuses: success, failure, and pending

#

Then I should use which cases transaction will be updated to success and which cases will be failed.

#

Hi @sinful bane

sinful bane
#

Please don't use mentions, we are monitoring all threads.

upper bramble
#

sorry for this.

sinful bane
#

Np!

sinful bane
#

Fell free to make the mapping with your system that you judge is accurate.

upper bramble
#

succeeded : success ( my system )

#

canceled : fail ( my system )

#

processing : pending ( my system )

#

With requires_payment_method, what status can it be?

sinful bane
upper bramble
#

But if the user does not continue to retry payment with that payment intent, then we will always have transactions in pending status in my transaction.

#

and it won't be a failure or success in the long time.

sinful bane
#

Yes then you can do the cleaning and remove those because PaymentIntent doesn't expire.

upper bramble
#

If I check in the dashboard, is it incompleled status?

sinful bane
#

yes

upper bramble
#

There is no fail status in here, right?

#

So how many statuses do we have for transactions in this dashboard?

sinful bane
#

In your integration, as you are using the public API you just refer to the payment_intent's status from the public doc

upper bramble
#

Yes. If a payment intent is always in required_payment_method status for a long time, then it will only stay in this status, right?

#

And do not update to any status for a period of time afterward.

soft sonnet
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. That's correct, if you don't make a request to advance a Payment Intent through out of the requires_payment_method state, then it won't advance.

upper bramble
#

Do we need to use weehook?

#

Can we update the state of our system through redirect_url callback?

soft sonnet
#

I would recommend using webhooks. Relying on your success page loading and running scripts could lead to missed orders in the case the customer unexpectedly loses network connectivity or if they close their browser to quickly.

upper bramble
#

Yes, I will check this.

#

I want to ask about apple pay.

#

Can you assist me?

#

About weehook, Which link can I refer to the document? Please help me.

soft sonnet
#

These are some useful guides.
https://docs.stripe.com/payments/handling-payment-events
https://docs.stripe.com/webhooks

Yes, I can likely help, please feel free to just ask your questions rather than asking for permission to do so moving forward. The server is getting a bit busy and it's typically faster if you just ask your questions.

How to use webhooks to respond to offline payment events.

Listen to events in your Stripe account on your webhook endpoint so your integration can automatically trigger reactions.

upper bramble
#

I am applying apple pay to my system, I have displayed the apple pay button in my website. So what is the next step I should take? I use php and vuejs

soft sonnet
#

What's the problem you're running into with what you have so far? (quick heads up that I'm not familiar with the vue framework)

upper bramble
#

I want to know what we need to do next after getting the apple pay button displayed.

soft sonnet
#

What did you do to show it? Are you integrating using our Payment Request Button or Express Checkout Element?

upper bramble
#

It is Express Checkout Element

soft sonnet
upper bramble
#

With Apple Pay, is there 3D secure?

soft sonnet
#

I'm pretty sure there is not

upper bramble
#

and does it have weebhooks for apple pay?

soft sonnet
#

Webhooks are emitted yes, but there are not any Apple Pay specific ones.

upper bramble
#

And when creating payment intent, is there any difference between card payment and apple pay?

soft sonnet
#

No

upper bramble
#

'automatic_payment_methods' => ['enabled' => true],
What does this transmission mean?

soft sonnet
#

That is used to enable Dynamic Payment Methods, where Stripe determines what payment method types to offer on the intent based on amount, currency, and what you have enabled in your dashboard:
https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled
https://docs.stripe.com/payments/payment-methods/integration-options#using-dynamic-payment-methods

Learn about the different ways to integrate payment methods.

upper bramble
#

Yes, thank for your support.

soft sonnet
#

Any time!

upper bramble
#

Hi

#

I am here

#

If our desgin, with payment successful, it will show a pop up notification of success and not move the page.

#

So what should we do?

soft sonnet
#

Huh?

upper bramble
#

Because currently, after success, the page is automatically redirected to redirect_url

soft sonnet
#

I'm not sure I understand what you're describing. Can you elaborate on that so I can understand what you're seeing currently, so then I can try to understand what you want to happen instead?

upper bramble
#

After successful payment, will system redirect to return_url param?

#

const {error} = await stripe.confirmPayment({
//Elements instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});

soft sonnet
upper bramble
#

How do I know which payment method is redirecting and which is not redirecting?

soft sonnet
#

Paypal is currently the only redirect based payment method type supported by the Express Checkout Element.

upper bramble
#

Yes, If I use master card and visa. then the redirection will not occur.

#

if redirect : if_required when confirm payment intent

soft sonnet
#

Correct, card payment methods do not perform redirects

upper bramble
#

Yes, thanks.

#

When will FE call retrieve payment intent by js?