#marimuthu_code

1 messages ¡ Page 1 of 1 (latest)

wanton moatBOT
#

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

spring yoke
#

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

queen totem
#

Please don't at me

spring yoke
#

OKay

queen totem
spring yoke
#

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?

queen totem
#

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

spring yoke
#

In Vrbo there is no documentation about this

queen totem
#

Then how are you generating those cryptograms?

spring yoke
#

Thanks @queen totem for your input

#

Your input resolved my issue

#

Thanks

#

its solved