2017-07-15 52 views
-1

如何從捲曲使用Java或Apache wicke 6.x的

我如何可以使用Java或Apache Wicket的6響應,我與已經強攻我的頭相當一段時間的一個問題是新手..。 x連接到此URL並獲得如下所示的響應

POST URL: https://checkout.simplepay.ng/v2/payments/card/charge/ 

curl "https://checkout.simplepay.ng/v2/payments/card/charge/" \ 
    -d token= 'tk_iKdhkLxPZEaGoNodfWoEFW' \ 
    -d amount= '110000' \ 
    -d amount_currency= 'NGN' \ 
    -u test_pr_demo: ‘test_pr_demo’' 

RESPONSE FORMAT 

{ 
    u'customer': 
     { 
      u'address_city': u'', 
      u'address_postal': u'110001', 
      u'address': u'17 Da Silva St, Lekki, Lagos, Nigeria', 
      u'email': u'[email protected]', 
      u'phone': u'+2347035706380', 
      u'address_state': None, 
      u'address_country': u'NG', 
      u'id': u'cus_CKX7mSkCFgkyiz4oHDY2mW' 
     }, 
    u'created': 1494677790, 
    u'response_code': 20000, 
    u'livemode': False, 
    u'currency': u'NGN', 
    u'source': 
     { 
      u'exp_month': 12, 
      u'funding': u'credit', 
      u'brand': u'VISA', 
      u'object': u'card', 
      u'last4': u'1111', 
      u'exp_year': 2018, 
      u'id': u'card_2aP8nZNtHDp9dkNPrbKsYc', 
      u'is_recurrent': False 
     }, 
    u'amount': 6000000, (amount in cents) 
    u'payment_reference': u'1850877790146606', 
    u'id': u'trans_67UQe4iSZQr6NdXjgBT57R', 
    u'captured': True 
} 

'response_code': 20000, Signifies a verified payment 

回答