json数据解析

----创建订单成功返回给paypal

{"ret_code":"000000","ret_msg":"订单查询成功","sign":"d3c82b56f9077f9c8f201570d5757f87","transfer_order":{"batchNumber":"20150610-paypa-dd-USD","countall":"0","createTime":1433898988000,"exchangeRate":"6.2182","exchangeStatus":"WAIT_MAKE_PAYMENT","expirationTime":1433899796000,"id":10060,"isMerchant":"Y","isMerchantPayee":"N","isProcessed":"N","maxrecords":"10","mccCode":"ANDND..","modifyTime":1433899126000,"offset":"0","orderIdIn3rdSys":"10000001","payeeId":111,"payeeInfo":{"bankAccountType":"C","bankAddress":"binjiang","bankCountryCode":"CN ","bankName":"BankOfChina","bic":"32132312","companyName":"CNDY","countryCode":"CHN","iban":"32132312","id":10059,"idNumber":"32323312900..11","idType":"1 ","name":"zhangsan"},"payeeInfoId":10059,"payerId":"111","payerInfo":{"bankName":"BankOfChina","countryCode":"CHN","id":10059,"idNumber":"32323312900..11","idType":"1 ","name":"zhangsan"},"payerInfoId":10059,"paymentStatus":"WAIT_MAKE_PAYMENT","sourceActualAmount":0,"sourceAmount":1000000,"sourceCurrency":"USD","status":"VALID","subBatchNumber":"20150610-paypa-dd-USD-CNY","targetAmount":6220000000,"targetCurrency":"CNY"}}

------成功提交订单返回信息给paypal

{"ret_code":"000000","ret_msg":"Successed","sign":"8dcbd9f5562809a22467a3ab3509d9be"}

-------超时,返回信息给paypal

{"ret_code":"999999","ret_msg":"TIMEOUT","sign":"a33710742dd7a0b8ada76d9e5887e20f"}

--成功订单创建返回信息给paypal的

{"error_code":"000000","error_message":"sueccess","is_success":"Y","sign":"9297d530f06dea16f81f53cdbace3111","transfer_order":{"payee":{"bank_address":"binjiang","bank_country_code":"CN","bank_name":"BankOfChina","bic_code":"32132312","company_name":"CNDY","country_code":"CHN","currency":"CNY","id_number":"32323312900..11","id_type":"1","mcc_code":"ANDND..","name":"zhangsan","paypal_account":"251965157@qq.com"},"payer":{"country_code":"USA","currency":"USD","pay_amount":1000000.00}}}




欢迎关注公众号:Java后端技术全栈