#mike-willay_code

1 messages ยท Page 1 of 1 (latest)

potent ospreyBOT
#

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

lost flare
#

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

uneven idol
#

Hi there, can you share with me the relevant PaymentIntent ID?

lost flare
uneven idol
#

The paymentIntent ID starts with pi_

lost flare
#

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 ?

uneven idol
lost flare
#

Please check this screenshot

uneven idol
lost flare
#

I have enabled it already

uneven idol
#

Can you use the link that I pasted to change the setting to "on by default"?

lost flare
uneven idol
#

the settings for payment methods for connected accounts is on a differnt page

#

I refreshed the page and it is still off by default

lost flare
#

Let me check again

#

Now I have updated this

#

can you please check

#

is this correct one ?

uneven idol
#

Yes that's correct

lost flare
#

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

potent ospreyBOT
lost flare
#

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

devout citrus
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

lost flare
#

Hi Tarzan

#

its happening on CashApp After Pay

devout citrus
#

quick question, are you handling the next_action manually yourself?

#

or are you just using stripe.confrimPayment() or stripe.handleNextAction()?

lost flare
#

We are using REST API to perform the action related to the Payment

devout citrus
#

would you mind elaborating more and sharing your code?

lost flare
#

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

devout citrus
#

ok would you mind sharing the code for your frontend part

lost flare
#

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

devout citrus
#

ok so you're using stripe.createPaymentMethod and this is what's opening the cashapp in a new window

#

right?

lost flare
#

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

devout citrus
#

oh so that explains why it's a new window rather than an iframe

lost flare
#

And for the Afterpay/ClearPay

#

We are facing issue in AfterPay/ ClearPay

devout citrus
#

same thing for any PaymentMethod to be honest

lost flare
#

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

devout citrus
#

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

lost flare
devout citrus
#

they might for 3DS

lost flare
#

Oh make sense

devout citrus
#

in all cases, as I said, I think you should update your integration based on the doc I sent

#

especially the CT part

lost flare
devout citrus
#

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

lost flare
#

Sure Tarzan, Thank you for looking deep into this
Have a Good Day, Cheers

devout citrus
#

sure you too ๐Ÿ™‚

#

let me know if you need any more help

lost flare
#

No thanks, will open new thread if stucked anywhere