Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom id for invoice id #603

Merged
merged 4 commits into from
Feb 19, 2024
Merged

Add custom id for invoice id #603

merged 4 commits into from
Feb 19, 2024

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    63e2433 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2023

  1. Merge pull request #1 from srmklive/v3.0

    Add installments. (fixes srmklive#602)
    buzzclue authored Dec 21, 2023
    Configuration menu
    Copy the full SHA
    27c8ea2 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2023

  1. Update PayPalVerifyIPN.php

    Some webhook verification fails with $request->all();
    
    You can test "PAYMENT.SALE.COMPLETED"
    
    `request->all {"id":"WH-0UX959158W078642N-2MW5123584490731L","event_version":"1.0","create_time":"2023-12-22T21:32:24.574Z","resource_type":"sale","event_type":"PAYMENT.SALE.COMPLETED","summary":"Payment completed for $ 3.67 USD","resource":{"amount":{"total":"3.67","currency":"USD","details":{"subtotal":"3.67"}},"payment_mode":"INSTANT_TRANSFER","create_time":"2023-12-22T21:32:18Z","custom":"id=3QWVF5ZswM&user=1&plan=2&interval=monthly&renew=10.4895&amount=3.671325&currency=USD&taxes=3%2C1&coupon=1","transaction_fee":{"currency":"USD","value":"0.62"},"billing_agreement_id":"I-MKX0RAHUCACW","update_time":"2023-12-22T21:32:18Z","protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","protection_eligibility":"ELIGIBLE","links":[{"method":"GET","rel":"self","href":"https://api.sandbox.paypal.com/v1/payments/sale/1SK68449YM493670F"},{"method":"POST","rel":"refund","href":"https://api.sandbox.paypal.com/v1/payments/sale/1SK68449YM493670F/refund"}],"id":"1SK68449YM493670F","state":"completed","invoice_number":null},"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0UX959158W078642N-2MW5123584490731L","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0UX959158W078642N-2MW5123584490731L/resend","rel":"resend","method":"POST"}]}
    payload {"stdClass":{"id":"WH-0UX959158W078642N-2MW5123584490731L","event_version":"1.0","create_time":"2023-12-22T21:32:24.574Z","resource_type":"sale","event_type":"PAYMENT.SALE.COMPLETED","summary":"Payment completed for $ 3.67 USD","resource":{"amount":{"total":"3.67","currency":"USD","details":{"subtotal":"3.67"}},"payment_mode":"INSTANT_TRANSFER","create_time":"2023-12-22T21:32:18Z","custom":"id=3QWVF5ZswM&user=1&plan=2&interval=monthly&renew=10.4895&amount=3.671325&currency=USD&taxes=3%2C1&coupon=1","transaction_fee":{"currency":"USD","value":"0.62"},"billing_agreement_id":"I-MKX0RAHUCACW","update_time":"2023-12-22T21:32:18Z","protection_eligibility_type":"ITEM_NOT_RECEIVED_ELIGIBLE,UNAUTHORIZED_PAYMENT_ELIGIBLE","protection_eligibility":"ELIGIBLE","links":[{"method":"GET","rel":"self","href":"https://api.sandbox.paypal.com/v1/payments/sale/1SK68449YM493670F"},{"method":"POST","rel":"refund","href":"https://api.sandbox.paypal.com/v1/payments/sale/1SK68449YM493670F/refund"}],"id":"1SK68449YM493670F","state":"completed","invoice_number":""},"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0UX959158W078642N-2MW5123584490731L","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-0UX959158W078642N-2MW5123584490731L/resend","rel":"resend","method":"POST"}]}}
    `
    buzzclue authored Dec 22, 2023
    Configuration menu
    Copy the full SHA
    18a1960 View commit details
    Browse the repository at this point in the history
  2. Update PayPalVerifyIPN.php

    Variable assignment fixed.
    buzzclue authored Dec 22, 2023
    Configuration menu
    Copy the full SHA
    a8317db View commit details
    Browse the repository at this point in the history