#feni-patel_api

1 messages ¡ Page 1 of 1 (latest)

viscid nimbusBOT
#

👋 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.

lethal hamlet
#

@naive ember Hii

naive ember
#

Hello! What's the question?

lethal hamlet
#

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 ?

naive ember
lethal hamlet
#

sure allo me some time

viscid nimbusBOT
lapis brook
#

hi! I'm taking over this thread.

lethal hamlet
#

Hello

#

req_kO52HVGNPfZA3e this is the request ID of the request

lapis brook
#

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

lethal hamlet
#

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

lapis brook
#

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.

lethal hamlet
#

Okay let me try and get back to you

lethal hamlet
#

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.

lapis brook
#

don't log the PaymentIntent. log the value you pass to source_transaction just before calling the Transfer endpoint.

lethal hamlet
#

That i am getting as null

lapis brook
#

exactly, so you need to add more logs ot your code to understand the issue in your code