Skip to content

A Magento 2 payment method that supports PayPal REST API

Notifications You must be signed in to change notification settings

FutureActivities/Magento2-PayPal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FutureActivities PayPal

A PayPal payment method that supports the new PayPal REST API, designed to be used by the Magento REST API.

This also supports refunds from within the Magento admin.

How to use

This is a Magento REST API only checkout method. PUT an order to the following endpoint:

/rest/V1/carts/mine/order

With the following data:

{
    "paymentMethod": {
        "method": "paypal_rest",
		"additional_data": PayPalResponse
    }
}

Where PayPalResponse is the response object from the paypal-checkout javascript buttons, and should include at a minimum:

  • payerID
  • paymentID

Settings

You need to create a PayPal REST app first at developer.paypal.com.

When enabling this payment method you need to set the Client ID and secret values, for both the sandbox and live versions.

API

Call the following API endpoint to retrieve the sandbox and live client IDs:

/V1/paypal/credentials

About

A Magento 2 payment method that supports PayPal REST API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages