Commerce

PayPal

10min
the paypal modules enable you to monitor notifications, payments, plans, and transactions, create and execute payments and agreements, or manage plans and agreements in your paypal account getting started with paypal prerequisites a paypal account (a business account to use in the production environment) in order to use paypal with make, it is necessary to have a paypal account if you do not have one, you can create a paypal account at paypal com https //www paypal com/us/webapps/mpp/account selection connecting paypal to make to connect your paypal account to make, you'll need to create a new app in paypal developer https //developer paypal com/home to obtain the client id and client secret go to paypal developer https //developer paypal com/home , and log in to your dashboard navigate to dashboard > https //developer paypal com/developer/applications/ and click create app to create a new app in the sandbox enter the desired app name (e g , make ), and select the sandbox account https //developer paypal com/developer/accounts to associate the app with click create app copy the provided client id and secret, and save them in a safe place 61d6ab8f76f4d png go to make, and open the paypal module's create a connection dialog enter the client id and secret you have copied in step 5 in the respective fields click the continue button to establish the connection the connection has been established you can proceed with setting up the module if you are logged in to your paypal account in another browser tab or in the same browser session that the make website is opened in, the paypal account you are logged into is then automatically used when creating a connection in make to ensure you connect the correct paypal account to make, log out of the paypal account before you create the connection in make to move your application into paypal's production environment, click on live a business account is required to go live triggers new notification triggers when an instant payment notification is received the webhook url needs to be generated in make and then added to paypal's integrations settings add the new notification module to your {{product name}} {{scenario singular lowercase}} generate and copy the webhook url log in to your paypal account open paypal ipn settings https //www paypal com/cgi bin/customerprofileweb?cmd=%5fprofile ipn notify click choose ipn settings button 61d6ab9676ac2 png enter the webhook url copied in step 2 above in the notification url field, select receive ipn messages (enabled), and click save now, every time the notification is received, the new notification module in your {{scenario singular lowercase}} make is triggered how to send instant payment notifications (ipns) to multiple make make let's assume that you have already configured the paypal > paypal docid\ fslhz gvjdvbdv7khpmb2 trigger in your paypal {{scenario singular lowercase}} , and you need to execute one or more additional {{scenario singular lowercase}} by one received paypal notification the paypal user interface allows you to set only one url where the notification will be sent create a new {{scenario singular lowercase}} this is the additional {{scenario singular lowercase}} that will be executed from your original (existing) paypal {{scenario singular lowercase}} add the webhooks > custom webhook module to the newly created {{scenario singular lowercase}} , and generate and copy the generated webhook url open the original paypal {{scenario singular lowercase}} that contains the paypal > new notification instant trigger, and add the http > make a request module in the {{scenario singular lowercase}} fill in the module's fields as follows url enter the webhook url from the new {{scenario singular lowercase}} you have generated and copied in step 2 (above) method select the post method body type select the application/x www form urlencoded type fields enter the name of the field in the key field, and map the desired field from the new notification module to the value field these fields will be sent to your new {{scenario singular lowercase}} , which will be executed by the custom webhook module these fields will be sent to your new make, which will be executed by the custom webhook module enter the name of the field in the key field, and map the desired field from the new notification module to the value field now, every time the paypal > new notification module triggers in your original paypal {{scenario singular lowercase}} , the desired received data will transfer to your new {{scenario singular lowercase}} via the http > make a request module, where the webhooks > custom webhook module will trigger creating a new payment to create a new payment, follow these two steps create a payment execute a payment the create a payment action consists of entering all payment details and getting an approval url the approval url is then sent to a user who logs into his/her paypal account and approves the payment afterward, the user is redirected to the redirect url (return or cancel url) that was specified during step 1 paypal appends to the return url a payer id and payment id make sure you store these ids, you will need them in step 2 as soon as the user approves the payment, run the execute a payment action (step 2) here, fill in the payer and payment ids that were appended to the return url after you run the action, the payment is executed creating an agreement to create a new agreement, follow these two steps create an agreement execute an agreement before creating an agreement, you must define and activate a billing plan (for example, using the action create a plan ) the first action involves entering all necessary details needed to set up a payment and generate an approval url this approval url is then sent to a user so that the user can approve the agreement the user must approve the agreement before you can execute it to activate the agreement, run the execute an agreement action (step 2)