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

Allow billingAddress to be passed in via customer options on AlternativePaymentMethod #904

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

gilv93
Copy link
Contributor

@gilv93 gilv93 commented Oct 25, 2024

Adds alternative path for setting customer fields such as billingAddress when initializing AlternativePaymentMethod class

@gilv93 gilv93 requested a review from chrissrogers October 25, 2024 04:40
initializing AlternativePaymentMethods class

update typescript types
@gilv93 gilv93 force-pushed the billing-address-via-options branch from 9d67a4f to 0daf4c3 Compare October 25, 2024 05:49
@@ -89,7 +96,7 @@ class AdyenGateway extends Base {
}

async submitWebComponent (billingAddress) {
this.customerBillingAddress = billingAddress;
if (this.customerBillingAddress === undefined) { this.customerBillingAddress = billingAddress; }
Copy link
Member

Choose a reason for hiding this comment

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

Let's allow an override here if a new billingAddress is provided:

if (billingAddress) {
  this.customerBillingAddress = billingAddress;
}

@chrissrogers chrissrogers merged commit 723836b into master Oct 25, 2024
27 of 41 checks passed
@chrissrogers chrissrogers deleted the billing-address-via-options branch October 25, 2024 17:47
recurly-integrations pushed a commit that referenced this pull request Oct 25, 2024
[Full Changelog](v4.32.0...v4.32.1)

**Merged Pull Requests**

- Allow billingAddress to be passed in via customer options on AlternativePaymentMethod [#904](#904) ([gilv93](https://github.com/gilv93))

##### Minified MD5 Checksum
```
d6c4b0a72b3613f5b6ec4befee8bc4fa ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
97yceyOlDA8bOrxfWGrTJOJDQrjAA1Vp3/JUCIkjVkD6U9Z+gMalwML/Jcm2+4jI
```
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