-
Notifications
You must be signed in to change notification settings - Fork 527
Conversation
Hi @galkahana ! that is quite a big feature, thank you for your work. There are some things to do before we can merge it:
|
cool. i'll try to get to it soon. |
Testing/adding payment methods
added payment methods
Hi, I updated the branch to pass CI tests, as well as add a test for the payment method scene. A couple of notes:
Cheers, |
Great job, Gal! |
Cheers man. thank you very much for the lib. |
…hout the archiving failures
updated the android lib. and now the pr doesn't pass on iOS. makes me think it doesn't have to do much but i cant experiment here by restrting the job. so gonna play on my travis copy and let you know. |
updated to use the latest android sdk release, so no need to rely on my repo anymore. non pod ios fails test...but honestly didn't touch this. especially shouldn't trigger no workspace...as there's none...plus no relevant change to this since the test succeeded last time. was all about android. |
@galkahana everything is good. But Alipay tests are failing again, I'm not sure were they changing designs from time to time but it looks like we need to fix this anyway, probably with some better selector. @galkahana will you be able to fix Alipay tests or I should ask someone else to do that? |
i'll try to find some time but would be grateful if someone else could do it :) |
@@ -133,6 +166,19 @@ private static int androidPayModeToEnvironment(@NonNull String androidPayMode) { | |||
return ANDROID_PAY_MODE_TEST.equals(androidPayMode.toLowerCase()) ? WalletConstants.ENVIRONMENT_TEST : WalletConstants.ENVIRONMENT_PRODUCTION; | |||
} | |||
|
|||
public void delayEphermalKeyResolution(String apiVersion, |
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.
public void delayEphermalKeyResolution(String apiVersion, | |
public void delayEphemeralKeyResolution(String apiVersion, |
@@ -7,7 +7,7 @@ | |||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> | |||
|
|||
<uses-sdk | |||
android:minSdkVersion="16" | |||
android:minSdkVersion="19" | |||
android:targetSdkVersion="22" /> |
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.
android:targetSdkVersion
probably should be bumped to match the 28
set elsewhere here too.
@@ -7,65 +7,66 @@ import errorCodes from './errorCodes' | |||
|
|||
const { StripeModule } = NativeModules | |||
|
|||
function toPlatformEphermalKey(keyAsObject) { |
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.
Same typo: Ephermal
to Ephemeral
Proposed changes
Types of changes
What types of changes does your code introduce to
tipsi-stripe
?Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! Next steps are a reminder of what we are going to look at before merging your code.Further comments
example:
To support client session manipulation, and ephemeral key must be sent. but you need to version of the sdk to send it. so - 2 stages to win:
returned result is an object with a
resultType
member that can be one of:STPSource
STPCard
STPApplePayPaymentMethod
(and hopefully soon also
STPGooglePayPaymentMethod
).For the first two you'll continue by charging the customer at backend. for Apple pay (and the other one, when added) you'll follow up launching the relevant native payment workflow, with the existing tipsi functionality, then pass the result token to server and perform a regular charge (this will automatically make that method the default, for subscriptions purpose).
Cheers, and thanks for this lovely library.