-
Notifications
You must be signed in to change notification settings - Fork 295
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
base: v7
Are you sure you want to change the base?
Conversation
if payPalRequest.requestBillingAgreement { | ||
self.requestBillingAgreement = payPalRequest.requestBillingAgreement | ||
|
||
if let billingAgreementDescription = payPalRequest.billingAgreementDescription { |
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.
Currently, this property belongs to class BTPayPalRequest
. After changing its properties to internal
in a previous PR, merchants can no longer access these properties, meaning there's no way to configure, for example, "billingAgreementDescription" when creating an instance of BTPayPalCheckoutRequest
or BTPayPalVaultRequest
. Do you think we should add the necessary properties to the init of BTPayPalCheckoutRequest
or BTPayPalVaultRequest
, or make the properties in BTPayPalRequest
public again and remove BTPayPalRequest.init
?
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.
That's a great catch, I don't think we want to make the properties on BTPayPalRequest
public since that would allow merchants to use the dot syntax, which we would like to move away from. I think it makes sense to add the properties to BTPayPalCheckoutRequest
or BTPayPalVaultRequest
inits then pass them in the super.init? What do you think?
Summary of changes
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