CHECKOUT.ORDER.APPROVED webhook event not triggered if payment_source is passed in

agoodlet
Contributor
Contributor

I've been looking into this for a while but can't seem to find anything to confirm if this is expected functionality or a bug

 

When passing in a payment_source object with the order create request, no webhook event is triggered to say that the order has been approved despite the order definitely being set to the "approved" status once the payer completes the payer-action

 

I'm passing in the payment source like this which comes from the docs here

'intent' => 'CAPTURE',
'purchase_units => [...],
'application_context' => [...],
'payment_source' => [
    'paypal' => [
        'attributes' => [
            'customer' => [
                'id' => 'BE2LSN7STHTAC',
            ],
            'vault' => [
                'confirm_payment_token' => 'ON_ORDER_COMPLETION',
                'usage_type' => 'MERCHANT'
                'customer_type' => 'CONSUMER',
            ],
        ],
    ],
],

If I omit the payment_source object the CHECKOUT.ORDER.APPROVED webhook fires no problem once the user completes the approve action

 

I've subscribed to all of the webhook events so even if it's triggering something else I should still be seeing it and it's not showing up in the webhook event logs at all which leads me to believe paypal just isn't sending the even at all

 

Using the return URL isn't really an option here so I need the webhook to tell me when to fire the order capture request

 

any insight would be appreciated!

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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