Retreave shipping address at Apple Pay Native Payment#140
Retreave shipping address at Apple Pay Native Payment#140kponda wants to merge 4 commits intojonasbark:masterfrom
Conversation
| return SetupIntentResult.fromJson(result); | ||
| } | ||
|
|
||
| static openApplePaySetup() async { |
There was a problem hiding this comment.
can you add some information why and where this is needed?
There was a problem hiding this comment.
I need open ApplePaySetup in somecase and StripePaymentPlugin.m and TPSStripeManager.m implemented this. but I can't call this method and I add openApplePaySetup method in stripe_payment.dart file.
https://github.com/jonasbark/flutter_stripe_payment/blob/master/ios/Classes/StripePaymentPlugin.m#L65
https://github.com/jonasbark/flutter_stripe_payment/blob/master/ios/Classes/TPSStripeManager.m#L877
|
This is necessary for any use case involving shipping...can we please merge this? |
| isoCountryCode: json['ISOCountryCode'] ?? "", | ||
| state: json['state'] ?? json['administrativeArea'] ?? "", | ||
| city: json['city'] ?? json['locality'] ?? "", | ||
| street: json['street'] ?? json['address1'] != null ? json['address1'] + json['address2'] : "", |
There was a problem hiding this comment.
The following line breaks with exception:
street: json['street'] ?? json['address1'] != null ? json['address1'] + json['address2'] : "",
_TypeError (type 'String' is not a subtype of type 'bool')
Needs parens, so change to
json['street'] ?? (json['address1'] != null ? json['address1'] + json['address2'] : "")
No description provided.