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

feat: Add support for Customer & Payments sessions, thus enabling one to use the SDK UI kit #9

Draft
wants to merge 80 commits into
base: master
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
c16b2d0
Setup Intent Android Implemented
0xamogh Aug 14, 2020
65fc8df
Bug fixes
0xamogh Aug 15, 2020
6b81dbd
Setup Intents removed
0xamogh Aug 15, 2020
89378a6
Build folder generated
0xamogh Aug 16, 2020
30147ad
Testing 2.0
0xamogh Aug 16, 2020
0718938
Gitignore updated
0xamogh Aug 16, 2020
dd99012
Fixes
0xamogh Aug 17, 2020
1073bf8
Add setupPayment iOS
ChesterSim Aug 23, 2020
1c23892
Fix broken code for iOS confirmSetup
ChesterSim Aug 25, 2020
72e50b6
Enabled multidex on Android
sagarshakya Aug 25, 2020
8cc3721
Complete confirmPayment for iOS
ChesterSim Aug 26, 2020
e410d88
Merge branch 'master' of github.com:aspect-apps/react-native-stripe-p…
ChesterSim Aug 26, 2020
0396689
Add card provider
ChesterSim Aug 26, 2020
4a47a8b
Build for card provider
ChesterSim Aug 26, 2020
fe8555b
Fix card provider
ChesterSim Aug 26, 2020
542e48d
Update confirmPayment to use createWithCardParams for iOS
ChesterSim Aug 26, 2020
017cebc
Split confirmPayment into confirmPaymentWithPaymentMethodId and confi…
ChesterSim Aug 27, 2020
f0e4a46
Update README.md
ChesterSim Aug 27, 2020
8993ad7
Update README.md
ChesterSim Aug 27, 2020
a4f886b
Update README.md
Aug 27, 2020
3384ec9
Split StripePaymentsModule.java confirmPayment
ChesterSim Aug 30, 2020
c3893f3
Merge branch 'master' of github.com:aspect-apps/react-native-stripe-p…
ChesterSim Aug 30, 2020
a42f6cd
Updated Pod Minimum Target
Sep 4, 2020
fa95bd5
Updated to be more inline with the iOS implementation
Sep 4, 2020
d5df02a
Update confirmSetupIntent return object
0xamogh Sep 4, 2020
d544dce
Merge pull request #1 from amogh-jrules/master
0xamogh Sep 4, 2020
393b94a
last4 added
0xamogh Sep 4, 2020
2f0d42f
Merge pull request #2 from amogh-jrules/master
0xamogh Sep 4, 2020
d8a39f3
Build for Amogh's commit
ChesterSim Sep 4, 2020
57d1e31
Removed Redundant values from iOS
Sep 4, 2020
824493e
Updating setupIntentResult object
0xamogh Sep 4, 2020
7dd4af1
Merge remote-tracking branch 'aspect-apps-origin/master'
0xamogh Sep 4, 2020
a932d06
Built Typescript files
Sep 4, 2020
e9b7134
Returning created from Native Android
0xamogh Sep 4, 2020
0937281
Merge remote-tracking branch 'aspect-apps-origin/master'
0xamogh Sep 4, 2020
d903fdc
Built Typescript files
Sep 4, 2020
7a71db9
Updated exp month / year to match TS
Sep 4, 2020
0e462e0
Updated exp month / year
Sep 4, 2020
b08f878
Updated exp month / year
Sep 4, 2020
f792d09
Updated TS definitions
Sep 4, 2020
759b7c1
Built Typescript files
Sep 4, 2020
90fc763
Fixed Types on Return Methods
Sep 4, 2020
d706435
Android native debug
0xamogh Sep 4, 2020
a899707
Merge remote-tracking branch 'aspect-apps-origin/master'
0xamogh Sep 4, 2020
6c675b0
docs: update README.md [skip ci]
allcontributors[bot] Sep 6, 2020
be8134f
docs: create .all-contributorsrc [skip ci]
allcontributors[bot] Sep 6, 2020
f7546b4
Merge pull request #3 from aspect-apps/all-contributors/add-lukebrand…
0xamogh Sep 6, 2020
6657256
docs: update README.md [skip ci]
allcontributors[bot] Sep 6, 2020
50bcf1f
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Sep 6, 2020
0fef763
Merge pull request #7 from aspect-apps/all-contributors/add-ChesterSim
0xamogh Sep 6, 2020
cf3d99a
docs: update README.md [skip ci]
allcontributors[bot] Sep 6, 2020
c6fcb21
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Sep 6, 2020
d21e764
Merge pull request #8 from aspect-apps/all-contributors/add-amogh-jrules
0xamogh Sep 6, 2020
78fb9fa
wip
andreibarabas Sep 8, 2020
beaeb9f
index
andreibarabas Sep 8, 2020
d10ee43
finish POC
andreibarabas Sep 9, 2020
6d987b4
add support for payment method type
andreibarabas Sep 9, 2020
ede2d35
improve dev ux by using invariant
andreibarabas Sep 9, 2020
27b1a3e
fix handling of params to the ephemeralKey callback
andreibarabas Sep 9, 2020
f9445a7
properly transmit the ephemeralKey to the native side
andreibarabas Sep 9, 2020
7fb8be1
improve error handling
andreibarabas Sep 10, 2020
68b9792
small rename
andreibarabas Sep 10, 2020
cf89d99
present payment methods works again
andreibarabas Sep 13, 2020
0b23313
properly handle events
andreibarabas Sep 13, 2020
24fb3c8
wip
andreibarabas Sep 13, 2020
765ef57
accept paymentMethodId when presenting selector screen
andreibarabas Sep 13, 2020
7d449f8
remove build folders
andreibarabas Sep 14, 2020
c08c12b
add back +add card
andreibarabas Sep 14, 2020
b27f864
help with the cancelled error handling
andreibarabas Sep 14, 2020
32e2a0a
standardize the payment method fields
andreibarabas Sep 14, 2020
06d9cbc
Update package.json
andreibarabas Sep 14, 2020
f708c4c
add type to invariant
andreibarabas Sep 15, 2020
dd3a7a0
Merge branch 'master' of https://github.com/andreibarabas/react-nativ…
andreibarabas Sep 15, 2020
d3fb710
remove footer
andreibarabas Sep 15, 2020
a5b002c
add support for bundling only on one platform
andreibarabas Sep 16, 2020
90feeb4
remove npm lock
andreibarabas Sep 22, 2020
ba54549
chore: temporarily include the build files, so we don't need prepare …
andreibarabas Sep 22, 2020
2e186e6
chore: remove forgotten logs that raise a crash when data is null
andreibarabas Oct 2, 2020
0f9f79a
add missing brand field in payment method
andreibarabas Oct 22, 2020
b1cc168
Update index.d.ts
andreibarabas Oct 22, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
standardize the payment method fields
  • Loading branch information
andreibarabas committed Sep 14, 2020
commit 32e2a0a1718d73656a37334cc46698feb285fc0e
Original file line number Diff line number Diff line change
@@ -446,7 +446,7 @@ protected WritableMap convertPaymentMethod(PaymentMethod paymentMethod) {
if(paymentMethod.card != null) {

WritableMap cardMap = Arguments.createMap();
cardMap.putString("brand", paymentMethod.card.brand.getDisplayName()); //mimic the stripe.js model https://stripe.com/docs/api/cards/object#card_object-brand
cardMap.putString("brand", paymentMethod.card.brand.getCode()); //mimic the stripe.js model https://stripe.com/docs/api/cards/object#card_object-brand
cardMap.putInt("expiryMonth", paymentMethod.card.expiryMonth);
cardMap.putInt("expiryYear", paymentMethod.card.expiryYear);
cardMap.putString("funding", paymentMethod.card.funding);