Skip to content

Payment provider development

Wade Penistone edited this page Feb 10, 2019 · 9 revisions

Creating a payment provider

Prerequisites

You will need a functioning Mind Stack instance on your development machine using another payment provider, to confirm that you have a bot instance ready to attach the payment provider you are developing to.

Also you will need a new git repo setup with the naming scheme being <provider-name>-pp
(eg vc-pp)

Finally you will need some development knowledge or documentation of the service you are planning to integrate with (if supported).

Boilerplate

You can generate boilerplate code for a payment provider by using the Official generator. This will be enough to get you started on writing your own code.

Configuration

Configuration in a payment provider is required to allow the user to enter credentials or settings via the env file

Data

Data

Code

Code

Tags (Skip if using generator)

Make sure to include the following tags (if your payment provider is public) under the keywords section of your package.json:

  • payment-provider
  • abstraction

Example

"keywords": [
    "payment-provider",
    "abstraction"
  ],