#feni-patel_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/1380468266824110192
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
@naive ember Hii
Hello! What's the question?
I am creating the payment intent on the backend side, and that will be confirmed on the frontend side. so currently when i am trying to transfer the amount to the connected account at that time i am facing one error which is "You passed an empty string for 'source_transaction'. We assume empty values are an attempt to unset a parameter; however, 'source_transaction' cannot be unset. You should remove 'source_transaction' from your request or supply a non-empty value.". payment intent ID is pi_3RWcRrFhYfQgOdcB1UuISDXC
can you helo me with this ?
I can. Can you share the ID (req_xxx) of the API request? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site 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.
sure allo me some time
hi! I'm taking over this thread.
thanks! in the request you can see you set source_transaction: "".
so it explains why you get an error about the source_transaction parameter
so you need to double check your code to fix that issue
but i have created the payment intent using the stripe.paymentIntents.create and into transafer i passed the source_transaction: paymentIntentID
but i think that intent will not be confirmed from the front end side that's why it will set as empty that's what i thought
I recommend adding some logs to your code to see exactly what's the value of the PaymentIntent ID you are trying to set. My guess it will be null.
Okay let me try and get back to you
Hello
I logged the details related to intent and i found
paymentIntent---> {
id: 'pi_3RWwReFhYfQgOdcB1qKzkYpi',
object: 'payment_intent',
amount: 148,
amount_capturable: 0,
amount_details: { tip: {} },
amount_received: 0,
application: null,
application_fee_amount: null,
automatic_payment_methods: null,
canceled_at: null,
cancellation_reason: null,
capture_method: 'automatic_async',
client_secret: 'pi_3RWwReFhYfQgOdcB1qKzkYpi_secret_QB5rdFpnNvhCHbm4XdmAhpsCG',
confirmation_method: 'automatic',
created: 1749201614,
currency: 'usd',
customer: 'cus_SRVJk4vXgKpFJL',
description: 'Payment for booking ID: 6842b2cab33ac470907493e5',
invoice: null,
last_payment_error: null,
latest_charge: null,
livemode: false,
metadata: {
businessAmount: '0.14',
businessAmountPercentage: '10',
minimumSpend: '0',
platFormFeeAndServiceFees: '5.27',
squeezAmount: '1.34',
squeezAmountPercentage: '100',
taxAmount: '0.12',
taxPercentage: '9',
tipAmount: '0',
tipFeesInPercentage: '0',
totalPaidAmount: '1.48'
},
next_action: null,
on_behalf_of: null,
payment_method: null,
payment_method_configuration_details: null,
payment_method_options: {
card: {
installments: null,
mandate_options: null,
network: null,
request_three_d_secure: 'automatic'
}
},
payment_method_types: [ 'card' ],
processing: null,
receipt_email: null,
review: null,
setup_future_usage: null,
shipping: null,
source: null,
statement_descriptor: null,
statement_descriptor_suffix: null,
status: 'requires_payment_method',
transfer_data: null,
transfer_group: '6842b2cab33ac470907493e5'
}
response
something is wrong.
don't log the PaymentIntent. log the value you pass to source_transaction just before calling the Transfer endpoint.
That i am getting as null
exactly, so you need to add more logs ot your code to understand the issue in your code