/create_payment_method

Enables you to create a credit/debit card, ACH, PayPal, or Venmo payment method while returning the payment_method_identifier.

πŸ“Œ PayPal and Venmo Payment methods

The /create_payment_method call can only be used to create PayPal and Venmo payment methods for disbursements.

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_identifier
  • payment_method_type

πŸ“Œ Return Minimal Info Option

Sending return_minimal_info=true option ensures that PayNearMe will only return the pnm_order_identifier and the pnm_customer_identifier in the order object. This reduces load time and overall bandwidth and can save money on network bandwidth expenses.

Credit and Debit Cards

When creating credit or debit card payment methods, be sure to include the following required parameters:
  • payment_method_card_number_pii
  • payment_method_card_expiry_pii
  • payment_method_cvv_pii
  • payment_method_billing_name
  • payment_method_billing_address
  • payment_method_billing_zipcode
  • payment_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_name
  • payment_method_billing_zipcode
  • payment_method_ach_aba_pii
  • payment_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=true
  • payment_amount
  • payment_currency

🚧 Payment History

This call returns the payment history of the order for all payment methods. For standing orders, this history can make the response message especially long. PayNearMe can set a flag for your site's orders to only display the most recent payment made for the order. This reduces the risk of a truncated payment history or a long response message. To display only the most recent payment for /create_payment_method responses, see your PayNearMe Technical Account Manager.

Language
URL