File tree Expand file tree Collapse file tree 6 files changed +22
-23
lines changed Expand file tree Collapse file tree 6 files changed +22
-23
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ The sandbox environment is a great way to test offline implementation of Apple P
570
570
## Apple Pay Button
571
571
572
572
Provides a button that is used either to trigger payments through Apple Pay or to prompt the user to set up a card.
573
- [Detailed docs and examples](packages/react-native-payments/ docs/ApplePayButton.md)
573
+ [Detailed docs and examples](docs/ApplePayButton.md)
574
574
575
575
## Add-ons
576
576
Here's a list of Payment Processors that you can enable via add-ons:
@@ -580,10 +580,10 @@ Here's a list of Payment Processors that you can enable via add-ons:
580
580
🚨 _Note: On Android, Payment Processors are enabled by default._
581
581
582
582
## API
583
- ### [NativePayments](https://github.com/naoufal/react-native-payments/blob/master/packages/react-native-payments/ docs/NativePayments.md)
584
- ### [PaymentRequest](https://github.com/naoufal/react-native-payments/blob/master/packages/react-native-payments/ docs/PaymentRequest.md)
585
- ### [PaymentRequestUpdateEvent](https://github.com/naoufal/react-native-payments/blob/master/packages/react-native-payments/ docs/PaymentRequestUpdateEvent.md)
586
- ### [PaymentResponse](https://github.com/naoufal/react-native-payments/blob/master/packages/react-native-payments/ docs/PaymentResponse.md)
583
+ ### [NativePayments](docs/NativePayments.md)
584
+ ### [PaymentRequest](docs/PaymentRequest.md)
585
+ ### [PaymentRequestUpdateEvent](docs/PaymentRequestUpdateEvent.md)
586
+ ### [PaymentResponse](docs/PaymentResponse.md)
587
587
588
588
## Resources
589
589
### Payment Request
Original file line number Diff line number Diff line change @@ -126,8 +126,10 @@ export default class PaymentRequestUpdateEvent {
126
126
}
127
127
128
128
if (
129
- target . _details . shippingOptions &&
130
- target . _details . shippingOptions . length > 0
129
+ target . _details . shippingOptions
130
+ && target . _details . shippingOptions . length > 0
131
+ && value . shippingOptions
132
+ && ( ( value . shippingOptions . find ( op => op . selected ) || { } ) . id || null ) !== target . _shippingOption
131
133
) {
132
134
target . _handleShippingOptionChange ( {
133
135
selectedShippingOptionId : target . _details . shippingOptions [ 0 ] . id
Original file line number Diff line number Diff line change @@ -485,16 +485,13 @@ export default class PaymentRequest {
485
485
}
486
486
487
487
// Try to dismiss the UI
488
- NativePayments . abort ( err => {
489
- if ( err ) {
490
- return reject ( new Error ( 'InvalidStateError' ) ) ;
491
- }
492
-
493
- this . _closePaymentRequest ( ) ;
494
-
495
- // Return `undefined` as proposed in the spec.
496
- return resolve ( undefined ) ;
497
- } ) ;
488
+ NativePayments . abort ( )
489
+ . then ( ( _bool ) => {
490
+ this . _closePaymentRequest ( ) ;
491
+ // Return `undefined` as proposed in the spec.
492
+ return resolve ( undefined ) ;
493
+ } )
494
+ . catch ( ( _err ) => reject ( new Error ( 'InvalidStateError' ) ) ) ;
498
495
} ) ;
499
496
}
500
497
Original file line number Diff line number Diff line change 35
35
"dependencies" : {
36
36
"es6-error" : " ^4.0.2" ,
37
37
"uuid" : " ^3.1.0" ,
38
- "validator" : " ^7.0.0 "
38
+ "validator" : " ^9.4.1 "
39
39
},
40
40
"devDependencies" : {
41
41
"babel-eslint" : " ^10.1.0" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
9
9
s . license = pkg [ "license" ]
10
10
s . homepage = pkg [ "homepage" ]
11
11
s . author = pkg [ "author" ]
12
- s . source = { :git => pkg [ "repository" ] [ "url" ] }
12
+ s . source = { :git => pkg [ "repository" ] }
13
13
s . source_files = 'ios/**/*.{h,m}'
14
14
s . platform = :ios , "8.0"
15
15
s . requires_arc = true
You can’t perform that action at this time.
0 commit comments