#Z-Afterpay
1 messages · Page 1 of 1 (latest)
Sure thing, it's req_RfLtaAuR7yuOoW
Hey! Taking over from Jack, let me take a look at this!
Hmm, I don't believe Afterpay is supported in your country (seems your Stripe account is Singapore based?): https://stripe.com/docs/payments/afterpay-clearpay
Even so, you can only use Afterpay with local currency settlement (i.e. you'd need to use sgd pricing, not usd)
We are trying to enable Afterpay for our Stripe Connect accounts in US
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
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
}
}
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)