/ideal-api-intergration

Learn how to accept iDEAL payments via Paypal's REST API

Primary LanguageJavaScript

API Intergration with iDEAL

This integration uses Paypal's REST API to accept iDEAL payments

See a hosted version

Features:

  • EUR Bank transfers 💶
  • Paypal REST API intergration
  • Receiving Webhook events 🪝

Demo:

Collecting an iDEAL payment

How to run locally

This server example implementation uses Node.js

  1. Clone the repo git clone git@github.com:paypal-examples/ideal-api-intergration.git

  2. Run npm install

  3. Copy the .env.example file into a file named .env

cp .env.example .env

and configure your .env config file with your Paypal Sandbox CLIENT_ID and CLIENT_SECRET

these can be obtained here

(If you would like to run the example without configuring webhooks you can skip 4 & 5)

  1. Run the local webhook server npm run webhook-server take note of the webhookId

  2. Update your .env file with the WEBHOOK_ID value

  3. Update client/index.html <script> src clientId param with your CLIENT_ID

    https://www.paypal.com/sdk/js?client-id=<CLIENT_ID>&...

  4. Start the server, in another terminal run npm start

  5. Navigate to http://localhost:8080/

 

Credits

Shaylan Dias