new Payment()
Creates a new payment. Generally you should never create a PAYMILL object on your own.
- Source:
Classes
Members
-
<static> Type
-
The type of payment.
- Source:
Properties:
Name Type Description CREDITCARD
string a credit card payment. DEBIT
string a direct debit payment. -
account :string
-
The used account number, for security reasons the number is masked. Only for direct debit payments.
Type:
- string
- Source:
-
app_id :string
-
App (ID) that created this payment or null if created by yourself.
Type:
- string
- Source:
-
card_type :string
-
Card type eg. visa, mastercard. Only for credit card payments.
Type:
- string
- Source:
-
client :string
-
The identifier of a client (client-object)
Type:
- string
- Source:
-
country :string
-
Country. Only for credit card payments.
Type:
- string
- Source:
-
created_at :Date
-
Unix-Timestamp for the creation date.
Type:
- Date
- Source:
-
expire_month :number
-
Expiry month of the credit card. Only for credit card payments.
Type:
- number
- Source:
-
expire_year :number
-
Expiry year of the credit card. Only for credit card payments.
Type:
- number
- Source:
-
holder :string
-
Name of the account holder. Only for direct debit payments.
Type:
- string
- Source:
-
id :string
-
Unique identifier for this payment.
Type:
- string
- Source:
-
is_recurring :boolean
-
Whether or not this payment is recurring (can be used more than once).
Type:
- boolean
- Source:
-
is_usable_for_preauthorization :boolean
-
Whether or not this payment is usable for preauthorization.
Type:
- boolean
- Source:
-
last4 :string
-
The last four digits of the credit card. Only for credit card payments.
Type:
- string
- Source:
-
type :Payment.Type
-
The type of the payment.
Type:
- Source:
-
updated_at :Date
-
Unix-Timestamp for the last update.
Type:
- Date
- Source: