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

Add WeChat Pay support (private beta) #1326

Merged
merged 7 commits into from
Aug 29, 2019
Merged

Add WeChat Pay support (private beta) #1326

merged 7 commits into from
Aug 29, 2019

Conversation

yuki-stripe
Copy link
Collaborator

Summary

  • Adds WeChat Source bindings
  • Adds WeChat Pay support to STPRedirectContext

Motivation

https://jira.corp.stripe.com/browse/IOS-772
https://jira.corp.stripe.com/browse/IOS-1174

Testing

  • Tested the WeChat example on device.
  • STPRedirectContextTest, STPSourceFunctionalTest.testCreateSource_wechatPay
  • Tested Sofort on simulator w/ webview & safari pop out for some assurance STPRedirectContext didn't regress.

Copy link
Contributor

@davidme-stripe davidme-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. (Besides the confusion we discussed around this being STPSourceFlowNone. We may want to document somewhere that WeChat Pay is a special case.)

@@ -23,6 +23,7 @@ @interface STPAPIClient (WritableURL)
@implementation STPSourceFunctionalTest

- (void)setUp {
// self.recordingMode = @YES;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this was left in by mistake.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

about half of our tests have this commented for ease of re-recording 🤷‍♂

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find it helpful, saves me the trouble of finding the syntax.

@@ -316,6 +322,8 @@ - (NSString *)label {
return STPLocalizedString(@"EPS", @"Source type brand name");
case STPSourceTypeMultibanco:
return STPLocalizedString(@"Multibanco", @"Source type brand name");
case STPSourceTypeWeChatPay:
return STPLocalizedString(@"WeChat Pay", @"Source type brand name");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to file a go/ask/localization ticket for this

@yuki-stripe yuki-stripe merged commit a17da66 into master Aug 29, 2019
@yuki-stripe yuki-stripe deleted the yuki-wechat-pay branch August 29, 2019 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants