#Z-Afterpay

1 messages · Page 1 of 1 (latest)

gritty gyro
#

Hi Z, can you share with me the request ID?

dusk salmon
#

Sure thing, it's req_RfLtaAuR7yuOoW

oblique lily
#

Hey! Taking over from Jack, let me take a look at this!

#

Even so, you can only use Afterpay with local currency settlement (i.e. you'd need to use sgd pricing, not usd)

dusk salmon
#

We are trying to enable Afterpay for our Stripe Connect accounts in US

oblique lily
#

Right, but that request you shared was made using the API keys of a Singapore merchant (acct_1IG1GYDsYoQYGm1m). There was no Stripe Account header passed either

dusk salmon
#

The request was made on_behalf_of account acct_1JyfhRRhRDdaS8Mc. Here's the full request:

{
"customer_email": "cococartqa@gmail.com",
"payment_method_types": [
"card",
"afterpay_clearpay"
],
"shipping_address_collection": {
"allowed_countries": [
"US"
]
},
"mode": "payment",
"success_url": "http://mps.localhost:3000/order-status?sessionId={CHECKOUT_SESSION_ID}&id=619bec651b1bcd15f71fd518",
"cancel_url": "http://mps.localhost:3000/?abandonedOrderId=619bec651b1bcd15f71fd518",
"line_items": [
{
"price_data": {
"currency": "usd",
"product_data": {
"name": "Brownie"
},
"unit_amount": 100000
},
"quantity": 1
}
],
"discounts": [],
"payment_intent_data": {
"on_behalf_of": "acct_1JyfhRRhRDdaS8Mc",
"transfer_data": {
"destination": "acct_1JyfhRRhRDdaS8Mc"
},
"application_fee_amount": 0
}
}

oblique lily
#

You're just passing destination charge related parameters there. Your Singapore merchant is still the account making the API request (where Afterpay isn't supported)