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

Paypal integration additions and updates to CCTransactionResult mapping #133

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

erincdustin
Copy link
Contributor

This PR includes the following additions to the PayPal integration:

  • An optional isCapture bool argument for the InitializePaymentRequestAsync() method, which will flag the transaction intent as 'capture' is set to true (default 'authorize')
  • A CapturePaymentAsync() method that captures funds immediately with no prior auth. This has been added to the ICreditCardProcessor interface but the method is not implemented in any other payment processor integrations at this time.
  • New PayPalClient config properties: PartnerAttributionID and Merchants for further customization of the integration

And the following updates:

  • The PayPal integration will now return a List of InnerTransactions for each merchant purchase_unit that is evaluated in a transaction. For example, the overall paypal capture can succeed, but it is possible for one or more merchant transactions to fail within the purchase_unit results.

Copy link
Contributor

@amrarick26 amrarick26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@amrarick26 amrarick26 merged commit a7d9321 into ordercloud-api:dev Nov 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants