# Scenario 2 (Master Card and Visa Card Type)

<mark style="color:green;">`POST`</mark> `https://seerbitapi.com/api/v2/payments/initiates`

**Scenario 2 (Master Card and Visa Card Type)**

1. The occurs for 3D secure card transactions.
2. After the payment has been initiated, the card holder gets prompted to complete the payment on the card's bank page.
3. For a successful initial call, code S20 will be returned with a redirect link in the redirectUrl field, merchant is expected to redirect to the link. Because of this merchant is expected to always pass the redirectUrl link that SeerBit should come back to after the payment is completed on 3Ds site.

{% tabs %}
{% tab title="cURL" %}

```javascript
curl --location 'https://seerbitapi.com/api/v2/payments/initiates' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_ENCRYPTION_KEY' \
--data '{
	"transaction":
		{
		 "linkingreference":"F468778061587905955047",
         "otp":"496865"
         }
}'
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
	"status": "SUCCESS",
	"data": {
			"code": "S20",
			"payments": {
					"paymentReference": "LKJHGFDR123UI23992JN23R",
					"linkingReference": "F468778061587905955047",
					"redirectUrl": "https://seerbitapigateway.com/seerbit/card-dispatch sredref=F468778061587905955047"
			},
			"message": "Transaction is pending"
	}
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apis.seerbit.com/api-endpoints/card-payment/scenario-2-master-card-and-visa-card-type.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
