This repository has been archived by the owner on Jan 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 527
payment methods #470
Closed
Closed
payment methods #470
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
aaa6189
ios implementation
galkahana 7cf9508
oops forgot card
galkahana 060c418
theoretically, android
galkahana 45dcd22
leftover
galkahana 5398896
revert androidx and later stripe version
galkahana 7ccce92
oops
galkahana 0366476
oh come on
galkahana 6a1fcb0
handle alternative customer session behavior
galkahana 89cfabe
use khealth stripe version so can avoid androidX but correct add card…
galkahana 486b3f9
please work
galkahana 7e627e6
apple pay
galkahana 65df4ad
add resultType to return payload to identity what was returned
galkahana f611475
new stripe
galkahana 67ce805
remove apple pay merchant id reduncency
galkahana 0603631
merge with remote master
galkahana 75b2289
add documentation
galkahana d35b957
upgrade gradle to support latest sdk
galkahana 8c708bb
should improve ci now
galkahana 5aa0028
payment methods testing attempts
galkahana 46911ee
put back ios settings
galkahana d4f6e74
use fetch instead
galkahana 2e9ca12
make backend api url variable
galkahana 3cfb103
condition test full run based on backend_url existance
galkahana edd02b4
Merge pull request #1 from galkahana/testing/adding-payment-methods
galkahana f6119a4
Merge pull request #2 from galkahana/master
galkahana 7812944
Merge branch 'master' into master
galkahana 964b559
jimp issue now resolved by author
galkahana ac3213d
update android stripe to google-pay-export to enjoy new content...wit…
galkahana 56eeaa4
use the newly released android sdk
galkahana dcd8f76
have to upgrade to min sdk 19
galkahana 7e0461e
and in all other places
galkahana b339081
ok. might need a repo update here
galkahana 132147f
firebase sais no longer supporting ios 9 and i dont see usages...how …
galkahana 31d329c
try a later version of appium that wont have the other issue
galkahana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
28 changes: 28 additions & 0 deletions
28
android/src/main/java/com/gettipsi/stripe/DirectKeyProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.gettipsi.stripe; | ||
|
||
import com.stripe.android.EphemeralKeyProvider; | ||
import com.stripe.android.EphemeralKeyUpdateListener; | ||
|
||
import com.gettipsi.stripe.StripeModule; | ||
import com.facebook.react.bridge.ReadableMap; | ||
|
||
|
||
public class DirectKeyProvider implements EphemeralKeyProvider { | ||
|
||
private String mRawKey; | ||
|
||
public DirectKeyProvider(String rawKey) { | ||
mRawKey = rawKey; | ||
} | ||
|
||
@Override | ||
public void createEphemeralKey(String apiVersion, | ||
final EphemeralKeyUpdateListener keyUpdateListener) { | ||
if(mRawKey == null) { | ||
StripeModule.getInstance().delayEphermalKeyResolution(apiVersion, keyUpdateListener); | ||
} | ||
else { | ||
keyUpdateListener.onKeyUpdate(mRawKey); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo:
Ephermal
👉Ephemeral
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.