0

am trying to get auto renewal response from paypal webhook and save to table. in mock call simulator its showing that cannot verify webhook. i wrote to log file what i got. am working with laravel framework, if anyone can help,it would be great

 production.DEBUG: {"id":"WH-2WR32451HC0233532-67976317FL4543714","event_version":"1.0","create_time":"2014-10-23T17:23:52Z","resource_type":"sale","event_type":"PAYMENT.SALE.COMPLETED","summary":"A successful sale payment was made for $ 0.48 USD","resource":{"id":"80021663DE681814L","create_time":"2014-10-23T17:22:56Z","update_time":"2014-10-23T17:23:04Z","amount":{"total":"0.48","currency":"USD"},"payment_mode":"ECHECK","state":"completed","protection_eligibility":"ELIGIBLE","protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","clearing_time":"2014-10-30T07:00:00Z","parent_payment":"PAY-1PA12106FU478450MKRETS4A","links":[{"href":"https://api.paypal.com/v1/payments/sale/80021663DE681814L","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/payments/sale/80021663DE681814L/refund","rel":"refund","method":"POST"},{"href":"https://api.paypal.com/v1/payments/payment/PAY-1PA12106FU478450MKRETS4A","rel":"parent_payment","method":"GET"}]},"links":[{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-2WR32451HC0233532-67976317FL4543714","rel":"self","method":"GET"},{"href":"https://api.paypal.com/v1/notifications/webhooks-events/WH-2WR32451HC0233532-67976317FL4543714/resend","rel":"resend","method":"POST"}]}


    [2021-12-07 16:59:47] production.DEBUG: Array
    (
    production.DEBUG: PayPal\Api\VerifyWebhookSignatureResponse Object
    (
        [_propMap:PayPal\Common\PayPalModel:private] => Array
            (
                [verification_status] => FAILURE
            )
    
    )

i want to save which user paid,amount,time,group etc from webhook response, Once again am telling, this is auto-renewal of a subscription,so its automatically triggering .

ANGELA
  • 27
  • 5

1 Answers1

1

Mock webhooks cannot be verified. Subscribe to webhooks in the sandbox environment and generate events there if you wish to verify them.

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • Sir it will work with sandbox credentials? you have any documentation ? – ANGELA Dec 08 '21 at 12:51
  • The PayPal webhook documentation is at https://developer.paypal.com/docs/api-basics/notifications/webhooks/rest/#subscribe-to-events – Preston PHX Dec 08 '21 at 13:28
  • i got transaction id and bliing agreement id of live from response how i find plan data and user data. – ANGELA Dec 09 '21 at 07:56
  • am trying in live to findout user details and plan name.. i got transaction id and billing id.Sir please help @preston – ANGELA Dec 09 '21 at 07:59
  • {"error":"invalid_token","error_description":"Token signature verification failed"} – ANGELA Dec 09 '21 at 08:05