Paypal
Setting up PayPal in BuildPlateZ is a straightforward process that allows you to accept payments through PayPal. This guide will walk you through the steps to configure PayPal as a payment provider in your BuildPlateZ project.
Introduction
Prerequisites
- A PayPal Developer account.
Step 1: Get PayPal Client ID and Client Secret
- Go to PayPal Developer Dashboard.
- Log in with your PayPal developer account.
- Navigate to Apps & Credentials under the Dashboard section.
- There's a Sandbox/Live switch in the top right where you can select Live.
- Click Create App if you don’t have one.
- Enter a name for your app and click Create App.
- Copy the Client ID and Client Secret from the newly created app.
Step 2: Set Up a PayPal Webhook
- In the Apps & Credentials page, select your created app.
- Scroll down to the Webhooks section.
- Click Add Webhook.
- Enter this URL to connect BPZ to your app -
https://api.buildplatez.com/payments/webhook - Select the ALL option in Event Types
- Click Save and note down the Webhook ID.
Step 3: Add payment method configuration
- Open the payment provider configuration screen or navigate to menu Organization -> Payment Providers.
- In the PayPal section enter the required fields with the data from previous steps
- The Success Url and Cancel Url are used to navigate the user after they pay or cancel. They can be URLs to your application or any other page you want the user to be redirected to after payment.
- Click Save.
Step 4: Verify Webhook Events
- Request a PayPal payment on a sample order.
- You should see a valid payment link successfully generated.
- Open the link in a browser and verify the details of the payment (amount, etc).
Conclusion
By following these steps, you have successfully set up PayPal credentials in BuildPlateZ. You can now accept payments through PayPal in your regular widgets and orders. If you encounter any issues, please refer to the BuildPlateZ documentation or contact support for assistance.