Ads 4 You

paypal parallel payments example php

Email Id : phpmk888@gmail.com

Paypal adaptive chained payments php example


The PayPal Adaptive Payments API is used to transfer money from a sender’s PayPal account to one or more than one PayPal receiver PayPal accounts. You can use PayPal Adaptive Payments to make simple payments, chained payments and parallels payments.
In this tutorial, we are going to demonstrate how we use PayPal adaptive apartment to make parallel payment. gvb
Parallel payments are useful in cases when a buyer intends to make a single payment for items from multiple sellers.
This is an example of the PayPal Adaptive Payment API in PHP to make a Chained and Parallel payment.
This code does not use an SDK but instead uses a basic wrapper to handle the NVP API. You can use this as a drop in for your project.
paypal adaptive payment parallel

paypal adaptive chained payments php example

paypal adaptive payment parallel


Running the demo
  • Clone this repo git clone https://github.com/maheshkathiriya/paypal-Parallel-Payment-2018.git
  • Change into the folder cd paypal-Parallel-Payment-2018
  • Initialise the submodule git submodule init
  • Update the submodule git submodule update
  • Run php -S 127.0.0.1:8080 to start the app (requires PHP 5.4 or above) or load it in your web server of choice.
  • Visit http://127.0.0.1:8080/ in your browser
  • Click the "Make a payment" link
  • You will be redirected to PayPal
  • Login using the following credentials:
    • Username: your buyer test account
    • Password: test account password
  • Complete the payment instructions
  • You will receive a message that says "Payment completed"

Comments

  1. paypal adaptive payment parallel i am getting error after calling $paypal = new PayPal($config); .

    Array
    (
    [responseEnvelope] => Array
    (
    [timestamp] => 2020-10-14T23:59:20.581-07:00
    [ack] => Failure
    [correlationId] => aaf6e0e19eda5
    [build] => apapiserv-0.0.1_20200929034129515
    )

    [error] => Array
    (
    [0] => Array
    (
    [errorId] => 580001
    [domain] => PLATFORM
    [subdomain] => Application
    [severity] => Error
    [category] => Application
    [message] => Invalid request: Unilateral payment is deprecated.
    [parameter] => Array
    (
    [0] => Unilateral payment is deprecated.
    [1] => One or more receiver account is unconfirmed/does not exist.
    )

    )

    )

    )

    Deprecation notice: The /v1/payments endpoint is deprecated. Use the /v2/payments endpoint instead.

    ReplyDelete
  2. Thank you for this tutorial. it works for me. keep doing this kind of stuff for us. good job.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep update your blog.
    Hire Framework Development Company in India

    ReplyDelete
  5. This is useful information. Thank you for your post. Really helpful.
    PayPal Nummer

    ReplyDelete
  6. This tutorial on the PayPal Adaptive Payments API demonstrates its prowess in facilitating seamless transactions among multiple PayPal accounts. By focusing on parallel payments, it addresses the need for streamlined processes when buyers purchase from multiple sellers. Utilizing a PHP implementation without an SDK showcases the flexibility and accessibility of the Payments API. Developers can easily integrate this solution into projects, enhancing payment experiences for users. Dive into this tutorial to leverage the power of the Payments API and revolutionize transaction handling.

    ReplyDelete

Post a Comment