#devparry
1 messages · Page 1 of 1 (latest)
Hi @terse iris could you please help me to fix this
Taking a look at this!
thanks
Okay, I think the issue is with the domain registration as well as the kinds of charges you're using with Connect.
You're using Express connected accounts, but not the recommended destination charges: https://stripe.com/docs/connect/destination-charges
Is there a specific reason for that?
we are using connect and all the payment will goes under connect account
Right, we recommend using destination charges with Express accounts. It looks like your team is using direct charges instead.
same code we use for google pay its working fine and all the payment goes under each and every connect account
It's a bit different for Apple Pay since the charge flow for your integration determines how your domain should be registered on Stripe.
before initializing the Stripe Button module in React we first created the payment intent with stripe connect please have a look at the screen-shot :
So, for Express accounts, the recommendation is to use destination charges. Once you're using destination charges, your Apple Pay domain should be added to your Express account in live mode
Right, so the code above ends up creating a PaymentIntent using direct charges, not destination charges
Here's a quick rundown of different Connect charge types: https://stripe.com/docs/connect/charges#types
okay...
ReactJs Code
`pr.canMakePayment().then(result => {
if(result.applePay === true ){
// here i have to call payment Intent API with destination charges and that client_payment_intent_secret we will use in next
}
})`
is this is what i have to do now for Apple Pay ?
Hi, stepping in as roadrunner is away, catching up here
one thing more I have to ask :
can i use destination charges for ( **payment_intent **) all Google Pay | Web Checkout Using Stripe Elements as well,
instead of the ( direct-charges ) as attached screenshot
This is what I already used to create payment Intent Right now.
Yes, you can create a destination charge when you create the Payment Intent, https://stripe.com/docs/connect/destination-charges instead. This document talks about how to achieve what you're looking for. Next, you'd want to register the Apple Pay domain on that Express account.
Yes
for this i have to paid extra or this is free ?
I do not understand the question here, are you asking if adding Apple Pay incurs additional cost?
I mean if i use destination-charges instead of direct charges ?
You'd want to read this section of the document, https://stripe.com/docs/connect/destination-charges#:~:text=Your platform pays the Stripe,is transferred to your account. With destination charges, the Platform pays for Stripe fee and you can set your application_fee_amount on these charges.
Hi @weak lake
Now i am getting this error after creating payment intent using destination-charges under google Pay as well
You'd want to make sure that you're using the correct API key, are you using the Platform's API key on this request?
This is what i do in my code
Hi there 👋 taking over for @weak lake
Usually you get the error "no such payment_intent" when you mix up requests sent on behalf of the connect account and requests sent by the platform. Do you know which one the Payment Intent was created on?
Judging by the first screenshot in this thread, it looks like you're probably creating the Payment Intent on behalf of the Connect account. If you want to use Destination charges, then the Payment Intent needs to be created on the Platform's account instead
I guess on the client end i need to do changes based on Destination charges as well could you please confirm what new param i have to add under this ?
What actions are you performing client-side? For destination charges, you shouldn't need to pass the connect account's API key at all
You should just be able to specify the platform's API key
platform's API key means ? sorry not getting this
you mean like this ?
const stripePromise = loadStripe(LaptureConstance.STRIPE_KEYS.PUBLIC_KEY );
That looks correct. You shouldn't need to specify an account in this case. Does removing the stripeAccount line work?
not able to test as I am getting errors not while getting recent payment Intent which the user already create and has not completed yet
What error?
this one
{
"code":400,
"status":"error",
"message":"Unrecognized request URL (POST: /v1/payment_intents/). If you are trying to list objects, remove the trailing slash. If you are trying to retrieve an object, make sure you passed a valid (non-empty) identifier in your code. Please see https://stripe.com/docs or we can help at https://support.stripe.com/."
}
any idea ?
Do you have a Request ID for that request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
This is the one but it show success no error
dnt know then why this respose retun by my payment-intent API
do you need request id ?