#sapient_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1342072328661504041
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi there!
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
also the error seems pretty clear, what's your question exactly?
{
"billing_address_collection": "auto",
"cancel_url": "http://192.168.29.110:3000//registration-fee-payment-failed",
"customer": "cus_Rkubkid24ixwyK",
"invoice_creation": {
"enabled": "true"
},
"line_items": {
"0": {
"price": "price_1QrOdyKH4UZqVNH7VR8AG3q8",
"quantity": "1"
},
"1": {
"price": "price_1QrR5XKH4UZqVNH7dOP4yT26",
"quantity": "1"
},
"2": {
"price": "price_1QrR5XKH4UZqVNH7Po40Z79b",
"quantity": "1"
}
},
"metadata": {
"user_email": "fatesok163@shouxs.com",
"user_id": "SiJJuBbaTdublgyHq"
},
"mode": "payment",
"payment_intent_data": {
"application_fee_amount": "1436",
"transfer_data": {
"destination": "acct_1Q7M4PGflAOlEKWU"
}
},
"payment_method_options": {
"acss_debit": {
"mandate_options": {
"interval_description": "On ",
"payment_schedule": "interval",
"transaction_type": "personal"
},
"verification_method": "automatic"
}
},
"payment_method_types": {
"0": "acss_debit",
"1": "card"
},
"phone_number_collection": {
"enabled": "true"
},
"success_url": "http://192.168.29.110:3000//registration-fee-payment-success"
}
I'm not sure why you are sharing this. can you answer my two questions above?
this is my customer id cus_Rkubkid24ixwyK
and when i create stripe.checkout.sessions.create this is my code
const session = await stripe.checkout.sessions.create({
mode: "payment",
billing_address_collection: "auto",
phone_number_collection: {
enabled: true,
},
invoice_creation: {
enabled: true,
},
line_items: stripe_product_price_ids,
customer: existUser[0].stripe_customer_id,
payment_method_types: ["acss_debit", "card"],
payment_method_options: {
acss_debit: {
mandate_options: {
payment_schedule: "interval",
interval_description: "On ",
transaction_type: "personal",
},
verification_method: "automatic",
},
},
metadata: {
user_id: existUser[0].user_id,
user_name: existUser[0].user_name,
user_email: existUser[0].user_email,
},
// Redirect to the client
success_url: ${process.env.USER_FRONTEND_URL}/registration-fee-payment-success,
cancel_url: ${process.env.USER_FRONTEND_URL}/registration-fee-payment-failed,
payment_intent_data: {
application_fee_amount: (processing_fee + platform_fee) * 100, // Amount in cents ($5.00) to your platform
transfer_data: {
destination: stripe_account_id, // The connected account ID
},
},
});
return session;
} catch (error) {
and this is my errro Error adding product price or creating session: StripeInvalidRequestError: Your destination account needs to
have at least one of the following capabilities enabled: transfers, crypto_transfers, legacy_payments
please, can you answer my questions?
- can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
- also the error seems pretty clear, what's your question exactly?
this is my request id
req_KHn37foeNPjHV5
and give this error
Your destination account needs to
have at least one of the following capabilities enabled: transfers, crypto_transfers, legacy_payments