veritrans / veritrans-android

The easiest way to integrate with Veritrans payment API on android
MIT License
74 stars 54 forks source link

Low priority - Demo app not working - "Failed to registering transaction" #134

Closed ericntd closed 8 years ago

ericntd commented 8 years ago
10-11 15:47:31.709 11732-15372 D/Retrofit: ---> HTTP POST https://vt-merchant.coralshop.top/api/charge
10-11 15:47:31.709 11732-15372 D/Retrofit: Accept: application/json
10-11 15:47:31.709 11732-15372 D/Retrofit: X-Source: mobile
10-11 15:47:31.709 11732-15372 D/Retrofit: Content-Type: application/json
10-11 15:47:31.709 11732-15372 D/Retrofit: Content-Length: 662
10-11 15:47:31.709 11732-15372 D/Retrofit: {"customer_details":{"billing_address":{"city":"Jakarta","country_code":"SGP","first_name":"Eric","last_name":"","phone":"+6593628809","postal_code":"37998"},"email":"eric@gmail.com","first_name":"Eric","phone":"+6593628809","shipping_address":{"city":"Jakarta","country_code":"SGP","first_name":"Eric","last_name":"","phone":"+6593628809","postal_code":"37998"}},"item_details":[{"id":"1","name":"Trekking Shoes","price":120000,"quantity":1},{"id":"2","name":"Casual Shoes","price":100000,"quantity":1},{"id":"3","name":"Formal Shoes","price":140000,"quantity":1}],"transaction_details":{"gross_amount":360000,"order_id":"d02c9603-f8c4-4de3-b112-c9f6c602f06d"}}
10-11 15:47:31.709 11732-15372 D/Retrofit: ---> END HTTP (662-byte body)
10-11 15:47:31.812 1780-2027 I/ActivityManager: Displayed com.midtrans.sdk.sample.development/com.midtrans.sdk.uikit.activities.PaymentMethodsActivity: +307ms
10-11 15:47:31.828 11732-11767 D/OpenGLRenderer: endAllActiveAnimators on 0x7f9b6d2000 (RippleDrawable) with handle 0x7fa6c456c0
10-11 15:47:31.834 11732-11732 I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@be93b81 time:142042975
10-11 15:47:31.862 11732-15372 D/Retrofit: <--- HTTP 200 https://vt-merchant.coralshop.top/api/charge (153ms)
10-11 15:47:31.862 11732-15372 D/Retrofit: OkHttp-Selected-Protocol: h2
10-11 15:47:31.862 11732-15372 D/Retrofit: server: nginx
10-11 15:47:31.862 11732-15372 D/Retrofit: date: Tue, 11 Oct 2016 07:47:28 GMT
10-11 15:47:31.862 11732-15372 D/Retrofit: content-type: application/json; charset=utf-8
10-11 15:47:31.862 11732-15372 D/Retrofit: content-length: 79
10-11 15:47:31.862 11732-15372 D/Retrofit: x-powered-by: Express
10-11 15:47:31.862 11732-15372 D/Retrofit: etag: W/"4f-oBOHIFDLiQP/flqUIrqC0Q"
10-11 15:47:31.862 11732-15372 D/Retrofit: OkHttp-Sent-Millis: 1476172051726
10-11 15:47:31.862 11732-15372 D/Retrofit: OkHttp-Received-Millis: 1476172051862
10-11 15:47:31.863 11732-15372 D/Retrofit: {"status_code":"400","status_message":"Validation Error, Invalid payment_type"}
10-11 15:47:31.863 11732-15372 D/Retrofit: <--- END HTTP (79-byte body)
rakawestu commented 8 years ago

Did you use the example apk in latest release? I think we uploaded wrong APK. Let me upload a new one.

ericntd commented 8 years ago

yes I did, I use 1.0.2 release

rakawestu commented 8 years ago

@ericn37 Please download the API from release again. I just uploaded the fixed example app.