| Name |
Type |
Description |
Notes |
| allowed_payment_methods |
Array<String> |
Are the payment methods available for this link. For subscriptions, only 'card' is allowed due to the recurring nature of the payments. |
|
| plan_ids |
Array<String> |
List of plan IDs that will be available for subscription. This field is required for subscription payments. |
[optional] |
| expires_at |
Integer |
Unix timestamp of checkout expiration |
[optional] |
| failure_url |
String |
Redirection url back to the site in case of failed payment, applies only to HostedPayment. |
[optional] |
| monthly_installments_enabled |
Boolean |
|
[optional] |
| monthly_installments_options |
Array<Integer> |
|
[optional] |
| max_failed_retries |
Integer |
Number of retries allowed before the checkout is marked as failed |
[optional] |
| name |
String |
Reason for payment |
[optional] |
| on_demand_enabled |
Boolean |
|
[optional] |
| redirection_time |
Integer |
number of seconds to wait before redirecting to the success_url |
[optional] |
| success_url |
String |
Redirection url back to the site in case of successful payment, applies only to HostedPayment |
[optional] |
| type |
String |
This field represents the type of checkout |
[optional] |
require 'conekta'
instance = Conekta::CheckoutRequest.new(
allowed_payment_methods: ["cash","card","bank_transfer","bnpl","pay_by_bank"],
plan_ids: ["plan_123","plan_456"],
expires_at: null,
failure_url: null,
monthly_installments_enabled: false,
monthly_installments_options: [3,6,12],
max_failed_retries: 3,
name: null,
on_demand_enabled: true,
redirection_time: 10,
success_url: null,
type: Integration
)