using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.ThreeDsScenarios.UpdateAsync(
threeDsScenarioId: "7099948d-7286-47e4-aad8-b68f7eb44591",
threeDSecureScenarioUpdate: new ThreeDSecureScenarioUpdate() {}
);
// handle response{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"conditions": {
"first_name": "John",
"last_name": "Luhn",
"email_address": "john@example.com",
"amount": 100,
"external_identifier": "buyer-12345",
"card_number": "4242424242424242"
},
"outcome": {
"version": "<string>",
"authentication": {
"transaction_status": "Y"
},
"result": {
"transaction_status": "Y"
}
},
"type": "three-d-secure-scenario"
}Update a 3DS scenario. Only available in sandbox environments.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.ThreeDsScenarios.UpdateAsync(
threeDsScenarioId: "7099948d-7286-47e4-aad8-b68f7eb44591",
threeDSecureScenarioUpdate: new ThreeDSecureScenarioUpdate() {}
);
// handle response{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merchant_account_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"conditions": {
"first_name": "John",
"last_name": "Luhn",
"email_address": "john@example.com",
"amount": 100,
"external_identifier": "buyer-12345",
"card_number": "4242424242424242"
},
"outcome": {
"version": "<string>",
"authentication": {
"transaction_status": "Y"
},
"result": {
"transaction_status": "Y"
}
},
"type": "three-d-secure-scenario"
}three-ds-scenarios.write scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The ID of the 3DS scenario
"7099948d-7286-47e4-aad8-b68f7eb44591"
Conditions for the scenario.
Show child attributes
{
"amount": 100,
"card_number": "4242424242424242",
"email_address": "john@example.com",
"external_identifier": "buyer-12345",
"first_name": "John",
"last_name": "Luhn"
}Outcome for the scenario.
Show child attributes
{
"authentication": { "transaction_status": "C" },
"result": { "transaction_status": "Y" },
"version": "2.3.1"
}Successful Response
Unique identifier for the 3DS scenario
"550e8400-e29b-41d4-a716-446655440000"
ID of the associated merchant account
"merchant-account-12345"
The date and time when this 3DS scenario was first created in our system.
"2013-07-16T19:23:00.000+00:00"
The date and time when this 3DS scenario was last updated in our system.
"2013-07-16T19:23:00.000+00:00"
Conditions for the scenario.
Show child attributes
{
"amount": 100,
"card_number": "4242424242424242",
"email_address": "john@example.com",
"external_identifier": "buyer-12345",
"first_name": "John",
"last_name": "Luhn"
}Outcome for the scenario.
Show child attributes
{
"authentication": { "transaction_status": "C" },
"result": { "transaction_status": "Y" },
"version": "2.3.1"
}{
"authentication": { "transaction_status": "N" },
"version": "2.3.1"
}Always three-d-secure-scenario.
"three-d-secure-scenario""three-d-secure-scenario"
Was this page helpful?