/** * Create a new payment object. * * Available params are: * - amount: The amount in cents for the payment. [Required] * For direct payment with credit / debit cards, card info are required. * - card_number: A valid credit /debit card number. [Required] * - expiration_month: Integer representation of month. [Required] * - expiration_year: Integer represantation of a valid expiration year. [Required] * - cvv: Card verification value. Three or four (American express) digits. [Required] * - holder_name: First and last name of the card holder. [Required] * For payments with card token, a valid card token required. Card tokens * can be obtained from Token::create api calls. * - token [Required]. * Optional params. * - currency: The ISO 4217 code currency used for this payment. [Optional] * - description: A decription for this payment max 255 chars. [Optional] * - payee_email: Customer email. [Optional] * - payee_phone: Customer phone number. [Optional] * - capture: Boolean Whether to capture a payment or just authorize it. * To authorize a payment this value must be 0. * - create_customer: Boolean Whether to create a customer and store its * card or not. * - installments: Integer The number of installments for this payment. * Can only be used for credit card payments. * - max_installments: Integer Used for payments with token, to validate * max installments set by the merchant from * everypay Button. * * @param array $params * @return stdClass */ public static function create(array $params) { return parent::create($params); }