-
Notifications
You must be signed in to change notification settings - Fork 294
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
[V7] Add Encodable
protocol for PayPal Checkout
#1491
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
import BraintreeCore | ||
#endif | ||
|
||
/// The POST body for v1/paypal_hermes/create_payment_resource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// The POST body for v1/paypal_hermes/create_payment_resource | |
/// The POST body for `v1/paypal_hermes/create_payment_resource` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated: f3ccfe4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few styling nits, otherwise this is awesome!
Summary of changes
PayPalRequest
protocol to define the contract for the base properties forBTPayPalCheckoutRequest
andBTPayPalVaultRequest
post
bodies used in the PayPal Checkout flow.Note: Since we have two different classes (
PayPalCheckoutRequest
andPayPalVaultRequest
) used inPayPalClient
, it's currently not possible to useEncodable
until the same implementation is done forPayPalVaultRequest
. We tested the flow, but we need to complete taskDTMOBILES-1177
to be able to useEncodable
.Checklist
[ ] Added a changelog entryAuthors