Class: TD::Types::PaymentForm

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/payment_form.rb

Overview

Contains information about an invoice payment form.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#can_save_credentialsBoolean

True, if the user can choose to save credentials.

Returns:

  • (Boolean)

    the current value of can_save_credentials



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def can_save_credentials
  @can_save_credentials
end

#invoiceTD::Types::Invoice

Full information of the invoice.

Returns:



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def invoice
  @invoice
end

#need_passwordBoolean

True, if the user will be able to save credentials protected by a password they set up.

Returns:

  • (Boolean)

    the current value of need_password



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def need_password
  @need_password
end

#payments_providerTD::Types::PaymentsProviderStripe?

Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def payments_provider
  @payments_provider
end

#saved_credentialsTD::Types::SavedCredentials?

Contains information about saved card credentials; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def saved_credentials
  @saved_credentials
end

#saved_order_infoTD::Types::OrderInfo?

Saved server-side order information; may be null.

Returns:



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def saved_order_info
  @saved_order_info
end

#urlString

Payment form URL.

Returns:

  • (String)

    the current value of url



14
15
16
# File 'lib/tdlib/types/payment_form.rb', line 14

def url
  @url
end