PickBazar Documentation
WelcomeHow It Works
Prerequisite
Installation
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
IntroductionStripeStripe ElementPaypalPayPalHow to create & setup PayPal information properly?RazorpayMolliePaystackSSLCOMMERZXenditIyzicoPaymongobKashFlutterwaveIntegration of New Payment GatewayMulti payment gateway
Flash Sale
Shop Transfer
Social LoginOTP (Mobile Number Verification)WalletEmail ConfigurationEmail VerificationSubscribeTerms and conditions
SEO and Analytics
Refund
Real-time Notification
Multilingual & Translation
Third-party Integrations
Deployment
API
Back-End Integration
Customizations
Update & Upgrade Guide
FAQ PageContactQuestion & AnswerFAQBreaking ChangesSupportChange Log

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 USD
PAYPAL_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 -> sandbox
PAYPAL_SANDBOX_CLIENT_ID=[YOUR_PAYPAL_SANDBOX_CLIENT_ID]
PAYPAL_SANDBOX_CLIENT_SECRET=[YOUR_PAYPAL_SANDBOX_CLIENT_SECRET_KEY]
# PayPal Setting & API Credentials -> live
PAYPAL_LIVE_CLIENT_ID=[YOUR_PAYPAL_LIVE_CLIENT_ID]
PAYPAL_LIVE_CLIENT_SECRET=[YOUR_PAYPAL_LIVE_CLIENT_SECRET_KEY]
# PayPal Webhook settings
PAYPAL_WEBHOOK_ID=[YOUR_PAYPAL_WEBHOOK_URL]
SHOP_URL=[YOUR_SHOP_URL]
SHOP_URL=[YOUR_SHOP_URL] This parameter is must have in .env file when PayPal is using. Otherwise the payment redirection will be broken.
  • 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)

admin-pickbazar-settings paypal-pickbazar-dashboard

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.

paypal-dashboard-api-keys

  • You will find the Webhook ID and link too.

paypal-webhook