Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 1.93 KB

File metadata and controls

40 lines (34 loc) · 1.93 KB

Conekta::CheckoutRequest

Properties

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]

Example

require 'conekta'

instance = Conekta::CheckoutRequest.new(
  allowed_payment_methods: [&quot;cash&quot;,&quot;card&quot;,&quot;bank_transfer&quot;,&quot;bnpl&quot;,&quot;pay_by_bank&quot;],
  plan_ids: [&quot;plan_123&quot;,&quot;plan_456&quot;],
  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
)