Reader small image

You're reading from  Hands-on ESP32 with Arduino IDE

Product typeBook
Published inJan 2024
PublisherPackt
ISBN-139781837638031
Edition1st Edition
Right arrow
Author (1)
Asim Zulfiqar
Asim Zulfiqar
author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar

Right arrow

Integrating the PayPal API

In this section, we will set up the Webhooks that will enable us to receive a notification related to the payment in the ESP32. To set up the Webhooks, we will complete the following steps:

  1. Firstly, we will go to https://www.webhook.site and get a unique URL, as highlighted in the following figure:
Figure 7.4 – A unique URL on Webhook.site

Figure 7.4 – A unique URL on Webhook.site

  1. Then, to test our Webhook, we will use the PayPal Instant Payment Notification (IPN) simulator. It will help us to simulate the payment notification for testing. To access the IPN simulator, go to https://developer.paypal.com/dashboard/ipnsimulator using your web browser.
  2. Paste the unique URL into the IPL URL handler, and select Web Accept as the transaction type.
Figure 7.5 – The PayPal IPN simulator

Figure 7.5 – The PayPal IPN simulator

  1. For testing, leave all other values to default, and then go to the bottom of the page and click on Send IPN.
...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Hands-on ESP32 with Arduino IDE
Published in: Jan 2024Publisher: PacktISBN-13: 9781837638031

Author (1)

author image
Asim Zulfiqar

Asim Zulfiqar is a blogger and tech content creator who has been writing tutorials on embedded systems and IoT on his blog and YouTube channel, High Voltages. Currently, he is working as a scientific programmer for IoT research projects. He completed his bachelor's degree in electronic engineering at Sir Syed University of Engineering and Technology, Pakistan. After that, he completed his Erasmus Mundus joint master's degree program in Photonics Integrated Circuits, Sensors, and Networks at Scuola Superiore Sant'Anna (Italy), Aston University (U.K), and Osaka University (Japan).
Read more about Asim Zulfiqar