#yohana2211
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
The request returns a JSON object, so it must pass through some wrapper in your app.
What's the URL you're calling here?
No, I just utilze the function prepared by PHP SDK
May be i can give you a screenshot
Could you please share the piece of code where you do this?
sure
$paymentIntent = PaymentIntent::create([
'amount' => ($amount*100),
'currency' => 'usd',
'automatic_payment_methods' => [
'enabled' => true,
],
'receipt_email' => "$email",
'description' => "$source product / service",
'shipping' => [
'name' => "$name",
'address' => [
'line1' => '',
]
],
'statement_descriptor' => "$source"
]);
if (isset($paymentIntent->id)){
return ['clientSecret' => $paymentIntent->client_secret];
} else {
return "Error";
}
Could you please catch and print the error? I am convinced it's your app that wraps the error in HTML.