Devices

Present payment method on a registered device

Create a payment method on a registered device using a payment method configuration. The merchant status must be ACTIVE to create a payment method.

📘 Note

A payment method created on a registered device may only be used for payins within the same merchant for which it was collected.

post/v1/device_registrations/{device_registration_id}/payment_method

Request

  • Base URL
    https://api.sandbox.rainforestpay.com
  • URL
    https://api.sandbox.rainforestpay.com/v1/device_registrations/{device_registration_id}/payment_method
  • Auth
    HTTP bearer

Parameters

#/paths/~1v1~1payins/get/parameters/0 (unresolved $ref)
#/paths/~1v1~1device_registrations~1{device_registration_id}/get/parameters/1 (unresolved $ref)

Request body

payment_method_config_idstring required

The unique payment method config identifier. A payment method must be configured prior to this request. See "Create a payment method config" if a payment method configuration has not been created yet.

Prefix is "pmc" in production and "sbx_pmc" in sandbox.

Example request

{
  "payment_method_config_id": "pmc_2S3yd7bLHxEScKeaIHhdusjk35q"
}

Response

OK

statusStatus (unresolved $ref)
dataData (unresolved $ref)
errorsErrors (unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.