#marimuthu_code
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/1308072161684099073
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- marimuthu_code, 4 days ago, 9 messages
My Code:
$passData = [];
$passData['payment_method_data'] = [
'type' => 'card',
'card' => [
'number' => 4242424242424242,
'cvc' => 123,
'exp_month' => 12,
'exp_year' => 2025,
]
];
// Include customer ID if available
$passData['customer'] = "cus_FEc4pOPNEGYFwd";
// Add amount, currency, and description
$description = "Dsignzmedia" . " - Draft";
$passData['amount'] = 400 * 100; // Convert amount to cents
$passData['currency'] = "USD";
$passData['confirm'] = "true";
$passData['description'] = $description;
// Add 3DS data from VRBO (replace these variables with your actual 3DS data)
$cavv = "AAABBgcIclmAAAAAAABaEHMAAAA=";
$eci = "05";
$xid = "ODQyNjQxMDU5NjU2NzEy";
$passData['payment_method_options'] = [
'card' => [
'three_d_secure' => [
'cavv' => $cavv,
'eci' => $eci,
'xid' => $xid,
'version' => '1.0.2' // 3DS Version 1
]
]
];
// Create the payment intent via Stripe API
try {
$paymentIntent = \Stripe\PaymentIntent::create($passData);
echo "<pre/>";
print_r($paymentIntent);
} catch (\Stripe\Exception\ApiErrorException $e) {
echo "<pre>";
echo "Error creating Payment Intent: " . $e->getMessage();
}
My Error:
Error creating Payment Intent: Received unknown parameters: xid, eci, cavv
@queen totem
Please don't at me
OKay
But overall, those parameters don't exist in our API: https://docs.stripe.com/api/payment_intents/create#create_payment_intent-payment_method_options-card-three_d_secure
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I don't really know what VRBO is, but if you're trying to use 3DS verification from other APIs with Stripe then you need this: https://docs.stripe.com/payments/payment-intents/three-d-secure-import
CAVV = cryptogram?
$passData['payment_method_options'] = [
'card' => [
'three_d_secure' => [
'cryptogram' => $cavv,
'electronic_commerce_indicator' => $eci,
'transaction_id' => $xid,
'version' => '1.0.2' // 3DS Version 1
]
]
];
Is this correct?
I don't know really. They're the right parameters but I don't know how the values you've got map to them
I recommend reading the documentation from both 'VRBO' and Stripe
In Vrbo there is no documentation about this
Then how are you generating those cryptograms?