Adding Paypal to your chatbot
Accept In-bot Payments with PayPal.
The SnatchBot platform provides robust administrative features and enterprise-grade security that comply with all regulatory mandates with the new capability of accepting in-bot payments via PayPal. Bot admins can complete transactions anytime from anywhere in the world. SnatchBot does not personally store any payment details; all sensitive data is passed securely to PayPal, where it is stored and used only to process payments.
The application and connection process is quick and effortless; it takes only minutes to test the function and begin accepting in-bot payments. When a customer enters payment details with a bot, their information is saved in PayPal's system, which is well-known for its unparalleled security. The next time the user wants to make a transaction with that bot, their information will already be available.
Firstly, to add a PayPal payment system, go to the profile settings on the Payment System tab:
![download (1).png 1290](https://files.readme.io/6185ba8-download_1.png)
As a PayPal merchant, you will need to Create an App and set up a unique PayPal Client ID and a PayPal Secret key from the PayPal developer portal. When you get the required values, enter them in the appropriate fields (as illustrated on the screenshot above).
For more information, see our Get your PayPal credentials page.
Once the Paypal Client ID and PayPal secret have been added, you will be automatically authorized and will see the Payment option displayed in the Payment button in the Text and Gallery cards:
![image (8).png 1437](https://files.readme.io/842255c-image_8.png)
Let us see how this feature works on a Pizza bot.
When users have selected all the desired ingredients for their pizzas, the bot will estimate the total price, and invite the user to make the payment:
![image (9).png 610](https://files.readme.io/413bfb3-image_9.png)
When the user clicks ‘Pay 3 credits’ button, he or she will be redirected to the PayPal system (it will ask the user to login), where payment can be confirmed:
![05.png 1726](https://files.readme.io/615eb2d-05.png)
After that, the user will see the message that his payment has been successfully accepted, and enter further required data (if needed):
![image (10).png 612](https://files.readme.io/061dbd0-image_10.png)
Mobile version
On a mobile device, the payment options have the following view:
![07.png 594](https://files.readme.io/7329e3c-07.png)
After clicking the Continue button, you will see that the payment has been successfully accepted:
![08.png 599](https://files.readme.io/b46395f-08.png)
![09 .png 592](https://files.readme.io/11111e9-09_.png)
Updated over 3 years ago