veritrans / Veritrans-ios-sdk

The new iOS SDK
MIT License
14 stars 33 forks source link

Missing Item information in dashboard #306

Closed ivanpradana closed 7 years ago

ivanpradana commented 7 years ago

Hello, I have a problem. I request a transactionToken using this method:

requestTransactionToken(with transactionDetails: MidtransTransactionDetails, 
          itemDetails: [MidtransItemDetail]?, 
          customerDetails: MidtransCustomerDetails?, 
          customField: [Any]?, 
          binFilter: [Any]?, 
          transactionExpireTime expireTime: MidtransTransactionExpire?, 
          completion: ((MidtransTransactionTokenResponse?, Error?) -> Swift.Void)? = nil) 

And then, after I got the response, I present MidtransUIPaymentViewController, here's my code:

let paymentViewController = MidtransUIPaymentViewController(token: midtransToken)
paymentViewController?.paymentDelegate = self
self?.present(paymentViewController!, animated: true, completion: nil)

And then, I completed the payment steps (or turned it to pending status), but, when I checked the transaction detail in my MAP dashboard, the transaction item information is missing. Please help.

Here's the MidtransItemDetail code:

let items = [MidtransItemDetail(itemID: String.random(withLength: 20), name: "Midtrans Pillow", price: 12200, quantity: 1)!]

I'm using version 1.7.2.5.

ivanpradana commented 7 years ago

Sorry, it appears there's a mistake from our backend (There's a typo when trying to request SNAP token).