johnbautista

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • johnbautista
    Participant
    Post count: 4

    I’ll try that and will get back to you. Also appreciate your candor when it comes to the new PayPal plugin’s possibly incompatibility. We’re also considering that but was truly in the fence on who we should contact: your team or theirs.

    Just looking at the most recent reviews of their new plugin, I have reasons to believe that the issue resides on their end.

    Still, I appreciate your time Subrata for going above and beyond. I’ll get back to you on your suggestion.

    johnbautista
    Participant
    Post count: 4

    Hi Subrata, can you share more information on how I can capture the full order payload details? I tried capturing the payload submitted to PayPal through my Chrome Dev Tools but the purchase_unit property seems empty.

    {"nonce":"9a51a0dc5c","purchase_units":[],"bn_code":"Woo_PPCP","payer":{"email_address":"myemail@gmail.com","name":{"surname":"Super","given_name":"Super"},"address":{"country_code":"US","address_line_1":"124124 asdfasdf","address_line_2":"","admin_area_1":"ALB","admin_area_2":"asdfadfadf","postal_code":"23523"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"35235"}}},"context":"cart"}

    Is there a better way to catch the payload?

    Re: the coupon, yes, the error shows up every time a cart is submitted through PayPal and the user has a balance greater than zero. All regardless if a default WooCommerce coupon is applied or not. On the other hand, if I don’t select PayPal as my payment method, it proceeds to the checkout page as expected.

    johnbautista
    Participant
    Post count: 4

    Hi Subrata, thanks for your reply. Apologies for the confusion, the payload above was the pattern suggested by PayPal engineers to follow.

    The payload below is the actual payload that PayPal has identified as a call that came from the merchant (our website).

    “items”: [

    {

    “category”: “PHYSICAL_GOODS”,

    “description”: “”,

    “name”: “Via wallet”,

    “quantity”: 1,

    “sku”: “”,

    “tax”: {

    “currency_code”: “USD”,

    “value”: “0.00”

    },

    “unit_amount”: {

    “currency_code”: “USD”,

    “value”: “-11.79”

    }

    }

    ],

    The -11.79 was the value of the wallet during checkout for this specific user. Hope that helps clarify.

    Meanwhile, there’s no issue with users that has no wallet balance during checkout. This can simulate to some degree the disabling of the plugin because no wallet-related amount is passed to PayPal.

    Aooreciate your response, Subrata.

    • This reply was modified 2 years, 10 months ago by johnbautista.
    • This reply was modified 2 years, 10 months ago by johnbautista.
Viewing 3 posts - 1 through 3 (of 3 total)
WhatsApp