post
https://api.paynearme-sandbox.com/json-api/create_payment_method
Enables you to create a credit/debit card, ACH, PayPal, or Venmo payment method while returning the payment_method_identifier. Use this endpoint to just create and tokenize payment methods or to simultaneously create the payment method and send a payment. The following parameters are required when creating payment methods:
pnm_order_identifierpayment_method_type
Credit and Debit Cards
When creating credit or debit card payment methods, be sure to include the following required parameters:payment_method_card_number_piipayment_method_card_expiry_piipayment_method_cvv_piipayment_method_billing_namepayment_method_billing_addresspayment_method_billing_zipcodepayment_method_billing_phone(Can be made an optional parameter)
Bank Accounts
When creating ACH payment methods, be sure to include the following required parameters:payment_method_billing_namepayment_method_billing_zipcodepayment_method_ach_aba_piipayment_method_ach_account_pii
PayPal and Venmo
When creating a PayPal payment method, be sure to include the payment_method_paypal_account_id parameter. For Venmo payment methods, include the payment_method_venmo_username parameter.Sending the Payment
If you want to send payment at the same time you create the payment method, be sure to include the following required parameters:send_payment=truepayment_amountpayment_currency