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

Generate Token Transaction nil Swift #490

Open
masmul opened this issue May 7, 2020 · 1 comment
Open

Generate Token Transaction nil Swift #490

masmul opened this issue May 7, 2020 · 1 comment

Comments

@masmul
Copy link

masmul commented May 7, 2020

why i get nil when requesting token

guard let transactionDetail = MidtransTransactionDetails(orderID: "50", andGrossAmount: 200) else { return } MidtransMerchantClient.shared().requestTransactionToken(with: transactionDetail, itemDetails: [itemDetail], customerDetails: customerDetail) { (token, error) in print(token) if (token != nil) { guard let midtransUI = MidtransUIPaymentViewController(token: token, andPaymentFeature: .MidtransPaymentFeatureBankTransfer) else { return } //self.delegate?.invoiceOtherPayment(midtransUI) } else { print("error \(error)") } }

nil error nil

anybody?

@kyweng
Copy link

kyweng commented Jul 5, 2021

Hi,

May I know if this issue resolved?

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

No branches or pull requests

2 participants