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

Add Shipping Callback URL to BTPayPalCheckoutRequest #1451

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

richherrera
Copy link
Contributor

@richherrera richherrera commented Oct 31, 2024

Summary of changes

  • Add a new property to the BTPayPalCheckoutRequest and pass it to support server-side shipping callbacks. Shipping callbacks should only be available for PayPal checkout flows.

Checklist

  • Added a changelog entry
  • Relevant test coverage

Authors

@richherrera richherrera self-assigned this Oct 31, 2024
@richherrera richherrera requested a review from a team as a code owner October 31, 2024 17:12
@jaxdesmarais
Copy link
Contributor

Did we revert #1429 on the feature brach?

@richherrera
Copy link
Contributor Author

Yes [DTMOBILES-1215], I accidentally recreated the feature branch

@@ -98,20 +101,24 @@ import BraintreeCore
/// See https://developer.paypal.com/docs/api/reference/currency-codes/ for a list of supported currency codes.
/// - requestBillingAgreement: Optional: If set to `true`, this enables the Checkout with Vault flow, where the customer will be prompted to consent to a billing agreement
/// during checkout. Defaults to `false`.
/// - shippingCallbackURL: Optional: Server side shipping callback URL to be notified when a customer updates their shipping address or options.
/// A callback request will be sent to the merchant server at this URL.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit - does this line 105 appear under the shippingCallbackURL param docstring? Or since it's a newline it might appear in the general function description. (I'm admin-ed out of Xcode right now or else I'd check the preview)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🦅 👁️ yeah, I wondered the same thing. The docstrings are a bit peculiar, i checked earlier, and this is how they look. What do you think?

Screenshot 2024-10-31 at 1 40 47 p m

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks great!

@richherrera richherrera merged commit bb5c402 into shipping-callback-feature Nov 1, 2024
8 checks passed
@richherrera richherrera deleted the add-shipping-callback-url branch November 1, 2024 15:36
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.

3 participants