#_sidharth

1 messages · Page 1 of 1 (latest)

reef gyroBOT
spiral aspen
#

Could you please share the PaymentIntent id ?

proper wren
#

Its not reaching till generation of PaymentIntent

spiral aspen
#

How the Apple pay is displayed without PaymentIntent

#

What Stripe Product are you using ?

proper wren
spiral aspen
#

Can you share your webiste so that we can test ?

proper wren
#

1.Pls go to - staging.paperhack.com
2.Log in with the following creds - email-paperhackstripe@mailinator.com password-Password@123
3. From My Papers pls select an existing paper.
4. Then click on Need more words and try purchasing it

NB: We are using Stripe in test mode
Thanks!

spiral aspen
#

This doesn't seems like Stripe Express Checkout

#

You shoul dbe seeing something like this

#

and not

proper wren
#

we have disabled Pay with Link and PayPal

#

are u able to see any logs in the browser on clicking the Apple Pay button?

spiral aspen
#

Every thing is good on my side

hybrid leaf
#

We can talk here.

#

Let me catch up

subtle bane
#

Okay

hybrid leaf
#

Is it possible to cancel my pro subscription so I try signing up again?

subtle bane
#

Did you try using Apple pay?

#

Or test cards?

#

And I can provide you with another set of creds, where you can try it out

#

Give me a sec

hybrid leaf
#

I used card this time. I want to check with apple pay now. Thanks

subtle bane
#

Understood.
Please try logging in again with this cred:
email: sean3@mailinator.com
password: @fricanM00se

#

You can click on a paper, and select the "need more words" option, where youll be prompted to use Apple Pay

hybrid leaf
#

Ok, it's stuck at processing too.

subtle bane
#

Before confirming the payment, we are trying to create a paymentInent. Even this is not being created.

#

We are using React.js

hybrid leaf
#

I see this error in the console:

subtle bane
#

Im also wondering if there are any additional configurations to be done to enable Apple Pay. So far, we have added the apple-developer-merchant-id-domain-association file as specified in the stripe doc.

hybrid leaf
#

Why do you use createPaymentMethod?

subtle bane
subtle bane
hybrid leaf
hybrid leaf
subtle bane
#

The guide suggests an optional section where we create a PaymentMethod. We use this approach for Cards. In the section "Create a PaymentIntent" in the guide, the payment intent creation, has no reference on the Payment method used, which was confusing. That's why we went ahead to create the payment intent with the payment method id as parameter as well

hybrid leaf
#

Do you have any specific need to create a Payment Method prior to creating a PaymentIntent?

subtle bane
#

post("/create-intent", (request, response) -> {
PaymentIntentCreateParams params =
PaymentIntentCreateParams
.builder()
.setAmount(1099L)
.setCurrency("usd")
// In the latest version of the API, specifying the automatic_payment_methods parameter is optional because Stripe enables its functionality by default.
.setAutomaticPaymentMethods(
PaymentIntentCreateParams.AutomaticPaymentMethods.builder().setEnabled(true).build()
)
.build();

  PaymentIntent paymentIntent = PaymentIntent.create(params);

This is the code snippet in the guide that we referred. Here in the payment intent create params, there is no mention of a payment method

subtle bane
hybrid leaf
subtle bane
#

Since we are not specifying a payment method, we were confused as to how Stripe will identify that the payment is done via apple pay.

hybrid leaf
hybrid leaf
subtle bane
#

Got it. But since we have the requirement to confirm the payment via Stripe, through a middleware called ChargeBee, we are required to pass the created PaymentIntent to Chargebee APIs.
We could be wrong about this implementation. We will try out the method provided in the guide, and see if there is any way to integrate ChargeBee.

#

Thank you for your guidance, its much appreciated.

#

Also, just confirming, the error you mentioned was the only error you could find in the browser right? Was there any logs before or after that?

hybrid leaf
#

You can listen to payment_intent.succeeded event and get the PI ID from there to send to ChargeBee. However, I don't know how ChargeBee works so I can't advice further. I would also suggest looking at Stripe Billing to handle subscriptions: https://stripe.com/docs/recurring-payments

subtle bane
hybrid leaf
#

Yes

subtle bane
#

In our current workflow, we are creating the payment intent in the uncaptured state, and the middleware(chargeBee) is sending a request to Stripe, which completes the transaction. We were able to successfuly implement that for cards.

hybrid leaf
#

I don't know how ChargeBee works so it's hard for me to advice.

#

Maybe you could reach out to them to see how they expect this to be implemented.

reef gyroBOT
subtle bane
#

Yes, we will try that too. Will we be able to reopen this chat if there is any more queries regarding this issue?

hybrid leaf
#

I will have to close this soon, but you can write in #dev-help and my colleagues will help you.

subtle bane
#

Thanks,that works

hybrid leaf
#

Happy to help.