paypal integration shopify

Sirius_Black
New Community Member

I've tried , but when i paid on paypal, but there is not order in my shopify admin panel , i was confused how paypal notify the shopify when payment was finished

 

Here's my shopify liquid code

 

 

<div id="paypal-button-container"></div>
<script>
PayPalSDK.Buttons({
    // Set up the transaction
    style: {
      shape: "rect"
    },
    createOrder: function(data, actions) {
        return actions.order.create({
            purchase_units: [{
                amount: {
                  value: {{product.price_max | divided_by: 100 }}
                }
            }]
        });
    },

    // Finalize the transaction
    onApprove: function(data, actions) {
        return actions.order.capture().then(function(details) {
        });
    }
}).render('#paypal-button-container');

 

 

 

 

 

 

 

 

 

 

Login to Me Too
1 REPLY 1

vaishnavib
Moderator
Moderator

Good day @Sirius_Black,

 

Thank you for posting to the PayPal community.

 

To ensure that you receive notifications after payment, we kindly request you integrate our payment event notification services. This will allow you to stay updated on all payment-related activities.

 

  • If your website is built via NVP/SOAP API integration, please use the Instant Payment Notification(IPN) service to get the payment notifications.

         Guide link - https://developer.paypal.com/docs/api-basics/notifications/ipn/

  • If your website is built via REST API integration, please use Webhooks event notification to get the payment notifications.

           Guide link - https://developer.paypal.com/docs/api-basics/notifications/webhooks/

 

If you still facing the issue, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Vaishnavi

PayPal MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.