在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:stripe-archive/PaymentKit开源软件地址:https://github.com/stripe-archive/PaymentKit开源编程语言:Objective-C 98.2%开源软件介绍:
PaymentKitPaymentKit is a utility library for writing payment forms in iOS apps. Important noteWe've moved development of PaymentKit's components into our main iOS SDK. This will make it easier for us to keep them up-to-date, and make installation and integration simpler for most apps. Despite this, please note that you don't have to be a Stripe user to use these components - the UI we've built has no dependencies on the Stripe API. MigrationIf you're using CocoaPods, to install our iOS SDK, just add We've renamed
// Before
- (void)paymentView:(nonnull PTKView *)paymentView withCard:(nonnull PTKCard *)card isValid:(BOOL)valid {
if (valid) {
[self doSomethingWithCard:card];
}
}
// After
- (void)paymentCardTextFieldDidChange:(STPPaymentCardTextField *)textField {
if (textField.isValid) {
STPCard *card = [[STPCard alloc] init];
card.number = textField.cardNumber;
card.expMonth = textField.expirationMonth;
card.expYear = textField.expirationYear;
card.cvc = textField.cvc;
[self doSomethingWithCard:card];
}
} If you have any issues with migration, feel free to contact [email protected]. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论