我在我的 iPhone 项目中实现了用于支付的 paypal 库。
如何在成功调用以下方法后检索交易 ID。
-(void)paymentSuccessWithKey:(NSString *)payKey andStatus:(PayPalPaymentStatus)paymentStatus {
status = PAYMENTSTATUS_SUCCESS;
}
- (void)paymentLibraryExit
{
UIAlertView *alert1 = nil;
switch (status)
{
case PAYMENTSTATUS_SUCCESS:
{
.......
...........
}
...............
..............
}
}
最佳答案
下面方法中的“payKey”就是transactionID。
-(void)paymentSuccessWithKey:(NSString *)payKey andStatus:(PayPalPaymentStatus)paymentStatus {
status = PAYMENTSTATUS_SUCCESS;
}
关于iphone - 关于在iphone中从paypal获取交易ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7482965/