#mike-willay_error

1 messages ยท Page 1 of 1 (latest)

cold wedgeBOT
#

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

๐Ÿ“ 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.

hallow trail
#

Hi do you need any more details ?

#

Do let me know

solid quartz
#

Hi there

hallow trail
#

Does stripe is validating tokne from their end, how does this flow work as other payment methods are working fine but I ma facing issue with particular this one

solid quartz
#

Hmm why are you calling confirmAfterpayClearpayPayment after it is coming back from AfterPay. That's where it already succeeded

hallow trail
#

how do we know that it is error or succeed from the client side , as the finla request will be handle from the server side

#

So does just passing the payment_intent_client_secret to the server it will work as expectedly or ?

solid quartz
#

I think you are confused. Let's take a step back

#

which method did you use to get to redirect to AfterPay page?

hallow trail
#

We are natively opening a window, I am not using stripe action to perfom this operations

solid quartz
#

open a window but load which URL?

hallow trail
#

PaymentIntentCreateOptions

solid quartz
#

Gotchas. On server you are creating the intent with confirm: true, correct?

hallow trail
#

yes

#

{
PaymentMethod = token,
Amount = Convert.ToInt32(amount * 100),
Currency = currency.ToLower(),
Description = string.Format("{0} {1}", storeName, orderNumber),
//StatementDescriptor = storeName.Trim(),
Confirm = true,
Metadata = metadata,
Expand = new List<string> { "latest_charge" }
};

solid quartz
#

So that's same with what confirmAfterpayClearpayPayment is doing (they are both confirming)

hallow trail
#

But this same flow is working for the Amazon Pay cashApppay

hallow trail
#

There is no need of use confirmAfterpayClearpayPayment as during intent creation we are already verifying the request from the server right ?

solid quartz
#

There is no need of use confirmAfterpayClearpayPayment as during intent creation we are already verifying the request from the server right
Yes
if this is success then just passing the payment_intent_client_secret to the server will do the job right ?
Which job your server is doing? The method I suggested above can help you verify the PI status on client-side, using the client_secret. Basically the PI is confirmed already and you don't need to do anything else, or it is errored and you need to provide another different payment method
But this same flow is working for the Amazon Pay cashApppay
Depends on what do you mean by "same flow". I believe confirmAfterpayClearpayPayment at least is a specific method and you don't use it on AmazonPay or CashApp

hallow trail
#

yes on Amzon pay we are using confirmAmazonPayPayment, same as for the cashAppPay it is different

solid quartz
#

What is the PI status when it comes back from AmazonPay page?

hallow trail
# hallow trail There is no need of use confirmAfterpayClearpayPayment as during intent creation...

we are calling the enpoint
public virtual PaymentIntent Confirm(string id, PaymentIntentConfirmOptions options = null, RequestOptions requestOptions = null)
{
return this.Request<PaymentIntent>(BaseAddress.Api, HttpMethod.Post, $"/v1/payment_intents/{WebUtility.UrlEncode(id)}/confirm", options, requestOptions);
}

to check the whether payment has been confirmed or not
First we are calling this to check eithere it is confirmed or not
public virtual PaymentIntent Get(string id, PaymentIntentGetOptions options = null, RequestOptions requestOptions = null)
{
return this.Request<PaymentIntent>(BaseAddress.Api, HttpMethod.Get, $"/v1/payment_intents/{WebUtility.UrlEncode(id)}", options, requestOptions);
}

if not then we are confirming from the above first method

solid quartz
#

Is that client or server code?

#

server, right?

hallow trail
#

Server

solid quartz
#

Alright that looks ok to me. The Confirm function should behaves the same for AmazonPay and AfterPay

hallow trail
#

We are facing particulary issue for the AftarPay only

#

rest payment options are working fine using the same flow

solid quartz
#

Yes I know but I think the flow itself doesn't make sense for confirming twice. Still you would want to check the status first before confirming again on frontend if you wish to keep using the flow

hallow trail
hallow trail