Paypal and the payments api
Hi everyone,
I am trying to understand how the payment api handles the checkout process for payments by paypal.
For credit card payments which get a 200 status code we can grab the ID to use for the bbps_transaction_id value to create the gift.
As I understand it a successful Paypal payment returns a status code of 201 which returns no data but is a successful transaction. My questions are
- how do you get the id
- How do we detect the payment was paypal so we can do some other logic
Thanks in advance
Comments
-
To get the transaction ID: the Checkout Transaction endpoint will return a 201 response for all successful PayPal transactions. In the 201 response header, there is a Location property that will contain the transaction ID. However, as noted in the documentation, using the GET Transaction endpoint for any PayPal transaction returns a 404 because those transactions are processed with PayPal directly.

To know when PayPal has been used: unfortunately, there is no explicit transaction type that will tell you it's a PayPal transaction, but if you get a 201 response as mentioned above, plus a 404 when trying to get transaction details, it is most likely a PayPal transaction.
Hope this helps!
0 -
@Mina Mistry
Thank you Mina0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
