#mike-willay_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1387696947137089629
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Currently while i am doing test mode, I am not able to see the CashApp pay as listed payment option, but on production it is showing,
How I can enable that so I can see it in the test mode as well
I have enabled it from the connected accounts as well, but on test mode it is not showing
Hi there, can you share with me the relevant PaymentIntent ID?
The paymentIntent ID starts with pi_
pm_1ReALeGNQ570gX7gPN0oObRi
My question is I just want to enable the CashAppPay in my test environmnet
How can I do that
It is already turned on from my connected accounts configuration settings
While i check this same in Production it is showing there fine ?
https://docs.stripe.com/connect/payment-method-configurations did you enable cashapp pay in test mode settings?
Yes it is enabled
Please check this screenshot
https://dashboard.stripe.com/test/settings/payment_methods/connected_accounts?config_id=pmc_0QevuvJTJPX8ytdQuRafa0Ni this is the test mode settings and cashapp has off_by_default
Can you use the link that I pasted to change the setting to "on by default"?
I have used this url and then shared the ss with you
the settings for payment methods for connected accounts is on a differnt page
I refreshed the page and it is still off by default
Let me check again
Now I have updated this
can you please check
is this correct one ?
Yes that's correct
Yes now I am able to see this
I have issue is related to the redirect url , I want your guidance in this
For desktop Mode,
Can you please first check this url : https://www.simpletix.com/e/color-fun-ga-tickets-206478?stage=1
this is the our implementation, we are embeding an iframe and inside that the stipe flow is there
Now when user scns the QR then it is again opening a new window on redirect I am attaching the ss instead of redirection to that same page flow, is ti due to the iframe or there is issue with implementtion
Same for the mobile as well
stripetokenId: pm_1ReAhHGNQ570gX7ge4Sx9rUB
For the test mode which I am checking now , there is no redirection or any event after scan the qr code of stripe cashAppPay
๐ taking over for my colleague. Let me catch up.
quick question, are you handling the next_action manually yourself?
or are you just using stripe.confrimPayment() or stripe.handleNextAction()?
We are using REST API to perform the action related to the Payment
would you mind elaborating more and sharing your code?
we are using, CreateIntent once user click on this button then a pop-up will be there and once user perfrom the payment then it is navigated back to out page, with queryParams there in url, so Once user land back to our domain then we are calling stripe.confrimPayment()
Do you need more details
ok would you mind sharing the code for your frontend part
yes sure
async submit() {
try {
this.spinnerOverlayService.startSpinning();
this.loading.emit(true);
let result: any = null;
if (this.isShowNewPaymentElement) {
const paymentMethodParams = {
billing_details: {
address: {
city: null,
country: null,
line1: null,
line2: null,
postal_code: null,
state: null
}
}
};
result = await this.stripe.createPaymentMethod(
this.selectedPaymentMethod,
this.cardNumberElement,
paymentMethodParams
);
} else {
result = await this.stripe.createPaymentMethod(
'card',
this.cardNumberElement
);
}
if (result.error) {
this.toasterService.showErrorMsg(result.error.message);
} else {
result.isShowNewPaymentElement = this.isShowNewPaymentElement;
this.sendStripe.emit(result);
}
} catch (error) {
console.error('Error during Stripe submission:', error);
this.toasterService.showErrorMsg(
this.localizePipe.transform('stripeErrorMsg')
);
} finally {
this.loading.emit(false);
this.spinnerOverlayService.stopSpinning();
}
}
This is the code snippet which is executing when user click on the above mentioned button
ok so you're using stripe.createPaymentMethod and this is what's opening the cashapp in a new window
right?
and then we process on backend side and use PaymentIntentCreateOptions , which give us url and that url we are using on frontend side to open a new widonw from our end
oh so that explains why it's a new window rather than an iframe
when you create the PaymentIntent and its status is requires_action you can simply send the client_secret back to the frontend and use stripe.handleNextAction https://docs.stripe.com/js/payment_intents/handle_next_action which should handle displaying the cashapp qr code correctly
same thing for any PaymentMethod to be honest
Okay so for all the PaymentMethod which required an authentication except card need's to follow this steps so it will work correctly right, without opening a new window in iframe on redirect
even cards
I'm not sure why you're even separating cards from the rest
and while you're at it, it's better to use ConfirmationTokens rather than using CreatePaymentMethod
I'll let you read more about it here https://docs.stripe.com/payments/finalize-payments-on-the-server?platform=web&type=payment#create-ct
as cards don't required any redirect payment as other like cahsApp pay and Afterpay
they might for 3DS
Oh make sense
in all cases, as I said, I think you should update your integration based on the doc I sent
especially the CT part
What's your final thought should I proceed with this and update my integration or use this ConfirmationToken part
both
just visit the doc I sent you and go step by step and update your integration accordingly
this should handle card and non-card payment methods
Sure Tarzan, Thank you for looking deep into this
Have a Good Day, Cheers
No thanks, will open new thread if stucked anywhere