WelcomeHow It WorksDemo DeploySocial LoginOTP (Mobile Number Verification)WalletEmail ConfigurationEmail VerificationSubscribeTerms and conditionsFAQ PageContactQuestion & AnswerFAQBreaking ChangesSupportChange Log
Prerequisite
Installation
Available Scripts & Command
How Can I use this app
Features
Settings
Payment
Flash Sale
Shop Transfer
SEO and Analytics
Refund
Real-time Notification
Multilingual & Translation
Third-party Integrations
Deployment
API
Back-End Integration
Customizations
Update & Upgrade Guide
PayPal
PayPal is an American multinational financial technology company operating an online payments system. In PickBazar we have integrated PayPal APIs which may cover a vast area of PayPal supported region. It will help your business to grow and reach to a wide region.
PayPal integrate inside PickBazar.
Please follow & complete this steps for PayPal integration for your e-commerce system.
- Inside api there is
.env
file. You have to copy & paste this line of codes inside the.env
file. We will discuss later about how to create those API keys in PayPal.
# Values: sandbox or live (Default: live)PAYPAL_MODE=sandbox# Add currency like USDPAYPAL_CURRENCY=USD# Change this accordingly for your application.PAYPAL_NOTIFY_URL=# force gateway language i.e. it_IT, es_ES, en_US ... (for express checkout only)PAYPAL_LOCALE=en#Validate SSL when creating api client.PAYPAL_VALIDATE_SSL=# PayPal Setting & API Credentials -> sandboxPAYPAL_SANDBOX_CLIENT_ID=[YOUR_PAYPAL_SANDBOX_CLIENT_ID]PAYPAL_SANDBOX_CLIENT_SECRET=[YOUR_PAYPAL_SANDBOX_CLIENT_SECRET_KEY]# PayPal Setting & API Credentials -> livePAYPAL_LIVE_CLIENT_ID=[YOUR_PAYPAL_LIVE_CLIENT_ID]PAYPAL_LIVE_CLIENT_SECRET=[YOUR_PAYPAL_LIVE_CLIENT_SECRET_KEY]# PayPal Webhook settingsPAYPAL_WEBHOOK_ID=[YOUR_PAYPAL_WEBHOOK_URL]SHOP_URL=[YOUR_SHOP_URL]
- To activate Paypal go to settings from PickBazar admin dashboard. Inside settings you will find configure payment option. (e.g. webhook URL is coming from local development. This static link will dynamically generated in live environment)
How to create & setup PayPal information properly?
- Create an account in https://developer.paypal.com
- Choose sandbox if your are testing your development environment.
- Click on
Default Applicaiton
. or create a new App. - You will get your Sandbox API credentials. Copy & paste those inside PickBazar app .env file like mentioned above.
- You will find the Webhook ID and link too.
Then Add the webhook events if you want to up & running the services.
- PAYMENT.CAPTURE.COMPLETED
- PAYMENT.CAPTURE.PENDING
- PAYMENT.CAPTURE.CANCELLED
- PAYMENT.CAPTURE.REVERSED
At last, For going live with your application please follow this official documentation. https://developer.paypal.com/docs/archive/paypal-here/sdk-dev/going-live/