Class: CheckoutSdk::Payments::PaymentLink
- Inherits:
-
Object
- Object
- CheckoutSdk::Payments::PaymentLink
- Defined in:
- lib/checkout_sdk/payments/links/payment_link.rb
Instance Attribute Summary collapse
- #allow_payment_methods ⇒ Array(CheckoutSdk::Common::PaymentSourceType)
- #amount ⇒ Integer
-
#amount_allocations ⇒ Array(CheckoutSdk::Common::AmountAllocations)
-
Not available on Previous.
-
- #billing ⇒ BillingInformation
- #billing_descriptor ⇒ BillingDescriptor
- #capture ⇒ TrueClass, FalseClass
- #capture_on ⇒ Time
- #currency ⇒ String
- #customer ⇒ CheckoutSdk::Common::CustomerRequest
- #customer_retry ⇒ CheckoutSdk::Common::CustomerRetry
- #description ⇒ String
- #disabled_payment_methods ⇒ Array(CheckoutSdk::Common::PaymentSourceType)
- #display_name ⇒ String
- #expires_in ⇒ Integer
- #locale ⇒ String
- #metadata ⇒ Hash(String=>Object)
- #payment_ip ⇒ String
- #payment_type ⇒ String
- #processing ⇒ ProcessingSettings
-
#processing_channel_id ⇒ String
-
Not available on Previous.
-
- #products ⇒ Array(CheckoutSdk::Common::Product)
- #recipient ⇒ PaymentRecipient
- #reference ⇒ String
- #return_url ⇒ String
- #risk ⇒ RiskRequest
- #sender ⇒ CheckoutSdk::Payments::Sender
- #shipping ⇒ ShippingDetails
- #three_ds ⇒ ThreeDSRequest
Instance Method Summary collapse
-
#initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) ⇒ PaymentLink
constructor
A new instance of PaymentLink.
Constructor Details
#initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) ⇒ PaymentLink
Returns a new instance of PaymentLink.
93 94 95 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 93 def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end |
Instance Attribute Details
#allow_payment_methods ⇒ Array(CheckoutSdk::Common::PaymentSourceType)
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#amount ⇒ Integer
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#amount_allocations ⇒ Array(CheckoutSdk::Common::AmountAllocations)
Returns - Not available on Previous.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#billing ⇒ BillingInformation
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#billing_descriptor ⇒ BillingDescriptor
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#capture ⇒ TrueClass, FalseClass
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#capture_on ⇒ Time
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#currency ⇒ String
Returns Common::Currency.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#customer ⇒ CheckoutSdk::Common::CustomerRequest
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#customer_retry ⇒ CheckoutSdk::Common::CustomerRetry
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#description ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#disabled_payment_methods ⇒ Array(CheckoutSdk::Common::PaymentSourceType)
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#display_name ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#expires_in ⇒ Integer
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#locale ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#metadata ⇒ Hash(String=>Object)
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#payment_ip ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#payment_type ⇒ String
Returns CheckoutSdk::Payments::PaymentType.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#processing ⇒ ProcessingSettings
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#processing_channel_id ⇒ String
Returns - Not available on Previous.
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#products ⇒ Array(CheckoutSdk::Common::Product)
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#recipient ⇒ PaymentRecipient
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#reference ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#return_url ⇒ String
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#risk ⇒ RiskRequest
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#sender ⇒ CheckoutSdk::Payments::Sender
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#shipping ⇒ ShippingDetails
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |
#three_ds ⇒ ThreeDSRequest
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/checkout_sdk/payments/links/payment_link.rb', line 63 class PaymentLink attr_accessor :amount, :currency, :payment_type, :payment_ip, :billing_descriptor, :reference, :description, :display_name, :processing_channel_id, :amount_allocations, :expires_in, :customer, :shipping, :billing, :recipient, :processing, :allow_payment_methods, :disabled_payment_methods, :products, :metadata, :three_ds, :risk, :customer_retry, :sender, :return_url, :locale, :capture, :capture_on def initialize(payment_type: CheckoutSdk::Payments::PaymentType::REGULAR) @payment_type = payment_type end end |