3

Trying to implement payments with Checkout-Python-SDK with requirement to provide the public link to detailed receipt to payer. Creating order on client, capturing it on server and everything is fine except I don't mind how to point user to his recipt.

There is known endpoint https://www.paypal.com/receipt/?id={paypal_invoice_id}, but it seems to work with invoices only (not orders or payments). Checkout-Python-SDK does not support invoices (yet?) and previous Paypal-Python-SDK works with API v1 only and is "in the process of being deprecated".

Anyway I can create invoice by hand with API v2 but should I? Invoices workflow looks too complex just for receipt link. So, is there any way to get receipt link after checkout?

oxfn
  • 6,590
  • 2
  • 26
  • 34

1 Answers1

-2

Practically everyone with this requirement implements a normal PayPal checkout, and serves the detailed receipt at www.yourwebsite.com/orderconfirmation/your_order_id , or similar.

That is simply how things are done.


The PayPal invoice workflow is for a different use-case than checkouts, and so no, it should not be used unless you specifically need to send an invoice.

Preston PHX
  • 27,642
  • 4
  • 24
  • 44
  • 1
    Order information on "mysite.com" can not be positioned as receipt at all, because "receipt" assumes that it is provided by fiscal institution with corresponding authority (in our case it is approved payment gateway) so the end user could trust it. Also I'm asking for it because Stripe, for example, provides receipt url for any payment – oxfn Feb 07 '20 at 14:21
  • For PayPal payments there are emailed receipts, and transaction details viewable in the paypal.com accounts. But not public URLs. – Preston PHX Feb 07 '20 at 16:56