Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
4,646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.81 KB | None | 0 0
  1. CURRENT FLOW:
  2.  
  3. 1. PayPal -> ePay
  4.  
  5. {
  6. "Track-ID": "pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739"
  7. "country_code": "BR",
  8. "customer_id": "MGLJBAXK27EKG",
  9. "customer_details": {
  10. "email": "branca0508@hotmail.com",
  11. "phone_number": {
  12. "country_code": "55",
  13. "national_number": "12992114868"
  14. }
  15. },
  16. "topup_amount": {
  17. "amount": "10",
  18. "currency_code": "BRL"
  19. },
  20. <.....>
  21. }
  22.  
  23.  
  24. 2. ePay -> BrainTree (to check if customer has BA)
  25.  
  26. BT Find >> string(13) "MGLJBAXK27EKG"
  27.  
  28. 3. BrainTree -> ePay (all data about customer. includes also "billingAgreementId" that comes from BrainTree (which is not the one we need?))
  29.  
  30. BT Find << object(Braintree\Customer)#6 (1)
  31. {
  32. ["_attributes": protected] => array(21) {
  33. ["id"] => string(13)"MGLJBAXK27EKG"["merchantId"] => string(16)"ngr4wkqm2bpch6n7"["firstName"] => string(7)"Vanessa"["lastName"] => string(6)"Santos"["company"] => NULL["email"] => string(22)"branca0508@hotmail.com"["phone"] => string(12)"-12992114868"["fax"] => NULL["website"] => NULL["createdAt"] => object(DateTime) # 12(3) {
  34. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  35. }
  36. ["updatedAt"] => object(DateTime) # 13(3) {
  37. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  38. }
  39. ["customFields"] => array(2) {
  40. ["sender_country_code"] => string(2)"BR"["sender_ip_address_during_signup"] => string(10)"10.0.0.100"
  41. }
  42. ["creditCards"] => array(0) {}
  43. ["paypalAccounts"] => array(1) {
  44. [0] => object(Braintree \ PayPalAccount) # 18(1) {
  45. ["_attributes": protected] => array(12) {
  46. ["billingAgreementId"] => string(19)"B-4S480217GD063603C"["createdAt"] => object(DateTime) # 20(3) {
  47. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  48. }
  49. ["customerId"] => string(13)"MGLJBAXK27EKG"["default"] => bool(true)["email"] => string(22)"branca0508@hotmail.com"["imageUrl"] => string(89)"https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=production"["subscriptions"] => array(0) {}
  50. ["token"] => string(7)"cb7rgyg"["updatedAt"] => object(DateTime) # 17(3) {
  51. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  52. }
  53. ["isChannelInitiated"] => bool(false)["payerInfo"] => NULL["limitedUseOrderId"] => NULL
  54. }
  55. }
  56. }
  57. ["addresses"] => array(1) {
  58. [0] => object(Braintree \ Address) # 8(1) {
  59. ["_attributes": protected] => array(16) {
  60. ["id"] => string(2)"ds"["customerId"] => string(13)"MGLJBAXK27EKG"["firstName"] => string(7)"Vanessa"["lastName"] => string(6)"Santos"["company"] => NULL["streetAddress"] => string(20)"R: JULIO TOFFULI,105"["extendedAddress"] => NULL["locality"] => string(8)"Taubatê"["region"] => string(2)"SP"["postalCode"] => string(8)"12091360"["countryCodeAlpha2"] => string(2)"BR"["countryCodeAlpha3"] => string(3)"BRA"["countryCodeNumeric"] => string(3)"076"["countryName"] => string(6)"Brazil"["createdAt"] => object(DateTime) # 22(3) {
  61. ["date"] => string(26)"2017-08-22 22:08:25.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  62. }
  63. ["updatedAt"] => object(DateTime) # 23(3) {
  64. ["date"] => string(26)"2017-08-22 22:08:25.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  65. }
  66. }
  67. }
  68. }
  69. ["coinbaseAccounts"] => array(0) {}
  70. ["applePayCards"] => array(0) {}
  71. ["androidPayCards"] => array(0) {}
  72. ["amexExpressCheckoutCards"] => array(0) {}
  73. ["venmoAccounts"] => array(0) {}
  74. ["paymentMethods"] => array(1) {
  75. [0] => object(Braintree \ PayPalAccount) # 18(1) {
  76. ["_attributes": protected] => array(12) {
  77. ["billingAgreementId"] => string(19)"B-4S480217GD063603C"["createdAt"] => object(DateTime) # 20(3) {
  78. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  79. }
  80. ["customerId"] => string(13)"MGLJBAXK27EKG"["default"] => bool(true)["email"] => string(22)"branca0508@hotmail.com"["imageUrl"] => string(89)"https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=production"["subscriptions"] => array(0) {}
  81. ["token"] => string(7)"cb7rgyg"["updatedAt"] => object(DateTime) # 17(3) {
  82. ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  83. }
  84. ["isChannelInitiated"] => bool(false)["payerInfo"] => NULL["limitedUseOrderId"] => NULL
  85. }
  86. }
  87. }
  88. }
  89. }
  90.  
  91.  
  92. 4. ePay -> BrainTree
  93. BT Sale >> array(6)
  94. {
  95. ["amount"] => string(2)"10"["channel"] => string(11)"Epay_STP_EC"["paymentMethodToken"] => string(7)"cb7rgyg"["options"] => array(2) {
  96. ["paypal"] => array(3) {
  97. ["supplementaryData"] => array(24) {
  98. ["sender_account_id"] => string(13)"MGLJBAXK27EKG"["sender_email"] => string(22)"branca0508@hotmail.com"["sender_phone"] => string(11)"12992114868"["sender_first_name"] => string(7)"Vanessa"["sender_last_name"] => string(6)"Santos"["sender_create_date"] => string(8)"20160103"["cd_string_one"] => int(0)["cd_string_two"] => string(5)"CLARO"["txn_count_total"] => string(1)"0"["txn_count_3_month"] => string(1)"0"["txn_count_24_hr"] => string(1)"0"["sender_signup_ip"] => string(10)"10.0.0.100"["sender_address_line1"] => string(20)"R: JULIO TOFFULI,105"["sender_address_line2"] => NULL["sender_address_city"] => string(8)"Taubatê"["sender_address_state"] => string(6)"Brazil"["sender_address_zip"] => string(8)"12091360"["sender_country_code"] => string(2)"BR"["vertical"] => string(5)"Topup"["receiver_phone"] => string(11)"12992114868"["receiver_phone_create_date"] => string(8)"20170822"["first_interaction_date"] => string(8)"20170823"["number_top_ups_24_hr"] => string(3)"120"["number_top_up_recievers"] => string(4)"7030"
  99. }
  100. ["customField"] => string(36)"3728CB3C-8D8F-42E7-914A-E3813937D3F1"["description"] => string(44)"CLARO - 3728CB3C-8D8F-42E7-914A-E3813937D3F1"
  101. }
  102. ["submitForSettlement"] => bool(true)
  103. }
  104. ["deviceData"] => string(53)"{" correlation_id ":" 63ff0b43c34d4bc1b090c9611c780f0e "}"["orderId"] => string(50)"pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739"
  105. }
  106.  
  107.  
  108. 5. BrainTree -> ePay
  109. BT Sale << Object(Braintree\Result\Successful)#20 (4)
  110. {
  111. ["success"] => bool(true)["_returnObjectNames": "Braintree\Result\Successful": private] => array(1) {
  112. [0] => string(11)"transaction"
  113. }
  114. ["_attributes": protected] => array(0) {}
  115. ["transaction"] => object(Braintree \ Transaction) # 12(1) {
  116. ["_attributes": protected] => array(60) {
  117. ["id"] => string(8)"gb1w79hp"["status"] => string(8)"settling"["type"] => string(4)"sale"["currencyIsoCode"] => string(3)"BRL"["amount"] => string(5)"10.00"["merchantAccountId"] => string(32)"telecomnetsalogisticadigital-BRL"["subMerchantAccountId"] => NULL["masterMerchantAccountId"] => NULL["orderId"] => string(50)"pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739"["createdAt"] => object(DateTime) # 10(3) {
  118. ["date"] => string(26)"2017-08-22 22:09:19.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  119. }
  120. ["updatedAt"] => object(DateTime) # 7(3) {
  121. ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  122. }
  123. ["customer"] => array(8) {
  124. ["id"] => string(13)"MGLJBAXK27EKG"["firstName"] => string(7)"Vanessa"["lastName"] => string(6)"Santos"["company"] => NULL["email"] => string(22)"branca0508@hotmail.com"["website"] => NULL["phone"] => string(12)"-12992114868"["fax"] => NULL
  125. }
  126. ["billing"] => array(13) {
  127. ["id"] => NULL["firstName"] => NULL["lastName"] => NULL["company"] => NULL["streetAddress"] => NULL["extendedAddress"] => NULL["locality"] => NULL["region"] => NULL["postalCode"] => NULL["countryName"] => NULL["countryCodeAlpha2"] => NULL["countryCodeAlpha3"] => NULL["countryCodeNumeric"] => NULL
  128. }
  129. ["refundId"] => NULL["refundIds"] => array(0) {}
  130. ["refundedTransactionId"] => NULL["partialSettlementTransactionIds"] => array(0) {}
  131. ["authorizedTransactionId"] => NULL["settlementBatchId"] => NULL["shipping"] => array(13) {
  132. ["id"] => NULL["firstName"] => NULL["lastName"] => NULL["company"] => NULL["streetAddress"] => NULL["extendedAddress"] => NULL["locality"] => NULL["region"] => NULL["postalCode"] => NULL["countryName"] => NULL["countryCodeAlpha2"] => NULL["countryCodeAlpha3"] => NULL["countryCodeNumeric"] => NULL
  133. }
  134. ["customFields"] => array(2) {
  135. ["sender_country_code"] => string(2)"BR"["sender_ip_address_during_signup"] => string(10)"10.0.0.100"
  136. }
  137. ["avsErrorResponseCode"] => NULL["avsPostalCodeResponseCode"] => string(1)"I"["avsStreetAddressResponseCode"] => string(1)"I"["cvvResponseCode"] => string(1)"I"["gatewayRejectionReason"] => NULL["processorAuthorizationCode"] => NULL["processorResponseCode"] => string(4)"1000"["processorResponseText"] => string(8)"Approved"["additionalProcessorResponse"] => NULL["voiceReferralNumber"] => NULL["purchaseOrderNumber"] => NULL["taxAmount"] => NULL["taxExempt"] => bool(false)["creditCard"] => array(20) {
  138. ["token"] => string(7)"cb7rgyg"["bin"] => NULL["last4"] => NULL["cardType"] => NULL["expirationMonth"] => NULL["expirationYear"] => NULL["customerLocation"] => NULL["cardholderName"] => NULL["imageUrl"] => string(90)"https://assets.braintreegateway.com/payment_method_logo/unknown.png?environment=production"["prepaid"] => string(7)"Unknown"["healthcare"] => string(7)"Unknown"["debit"] => string(7)"Unknown"["durbinRegulated"] => string(7)"Unknown"["commercial"] => string(7)"Unknown"["payroll"] => string(7)"Unknown"["issuingBank"] => string(7)"Unknown"["countryOfIssuance"] => string(7)"Unknown"["productId"] => string(7)"Unknown"["uniqueNumberIdentifier"] => NULL["venmoSdk"] => bool(false)
  139. }
  140. ["paypal"] => array(20) {
  141. ["token"] => string(7)"cb7rgyg"["payerEmail"] => string(22)"branca0508@hotmail.com"["paymentId"] => string(28)"PAY-4TG381575H433483DLGOKXEA"["authorizationId"] => string(17)"9EW6219648914910M"["imageUrl"] => string(89)"https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=production"["debugId"] => string(28)"a3685df392929, a3685df392929"["payeeEmail"] => NULL["customField"] => string(36)"3728CB3C-8D8F-42E7-914A-E3813937D3F1"["payerId"] => string(13)"MGLJBAXK27EKG"["payerFirstName"] => string(7)"Vanessa"["payerLastName"] => string(6)"Santos"["payerStatus"] => string(10)"UNVERIFIED"["sellerProtectionStatus"] => string(8)"ELIGIBLE"["captureId"] => string(17)"9EW6219648914910M"["refundId"] => NULL["transactionFeeAmount"] => string(4)"0,61"["transactionFeeCurrencyIsoCode"] => string(3)"BRL"["description"] => string(44)"CLARO - 3728CB3C-8D8F-42E7-914A-E3813937D3F1"["taxId"] => string(11)"29122595848"["taxIdType"] => string(6)"BR_CPF"
  142. }
  143. ["statusHistory"] => array(3) {
  144. [0] => object(Braintree \ Transaction \ StatusDetails) # 14(1) {
  145. ["_attributes": protected] => array(5) {
  146. ["timestamp"] => object(DateTime) # 19(3) {
  147. ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  148. }
  149. ["status"] => string(10)"authorized"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
  150. }
  151. }
  152. [1] => object(Braintree \ Transaction \ StatusDetails) # 9(1) {
  153. ["_attributes": protected] => array(5) {
  154. ["timestamp"] => object(DateTime) # 24(3) {
  155. ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  156. }
  157. ["status"] => string(24)"submitted_for_settlement"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
  158. }
  159. }
  160. [2] => object(Braintree \ Transaction \ StatusDetails) # 26(1) {
  161. ["_attributes": protected] => array(5) {
  162. ["timestamp"] => object(DateTime) # 25(3) {
  163. ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
  164. }
  165. ["status"] => string(8)"settling"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
  166. }
  167. }
  168. }
  169. ["planId"] => NULL["subscriptionId"] => NULL["subscription"] => array(2) {
  170. ["billingPeriodEndDate"] => NULL["billingPeriodStartDate"] => NULL
  171. }
  172. ["addOns"] => array(0) {}
  173. ["discounts"] => array(0) {}
  174. ["descriptor"] => object(Braintree \ Descriptor) # 21(1) {
  175. ["_attributes": protected] => array(3) {
  176. ["name"] => NULL["phone"] => NULL["url"] => NULL
  177. }
  178. }
  179. ["recurring"] => bool(false)["channel"] => string(11)"Epay_STP_EC"["serviceFeeAmount"] => NULL["escrowStatus"] => NULL["disbursementDetails"] => object(Braintree \ DisbursementDetails) # 16(1) {
  180. ["_attributes": protected] => array(6) {
  181. ["disbursementDate"] => NULL["settlementAmount"] => NULL["settlementCurrencyIsoCode"] => NULL["settlementCurrencyExchangeRate"] => NULL["fundsHeld"] => NULL["success"] => NULL
  182. }
  183. }
  184. ["disputes"] => array(0) {}
  185. ["authorizationAdjustments"] => array(0) {}
  186. ["paymentInstrumentType"] => string(14)"paypal_account"["processorSettlementResponseCode"] => string(4)"4000"["processorSettlementResponseText"] => string(9)"Confirmed"["threeDSecureInfo"] => NULL["creditCardDetails"] => object(Braintree \ Transaction \ CreditCardDetails) # 11(1) {
  187. ["_attributes": protected] => array(22) {
  188. ["token"] => string(7)"cb7rgyg"["bin"] => NULL["last4"] => NULL["cardType"] => NULL["expirationMonth"] => NULL["expirationYear"] => NULL["customerLocation"] => NULL["cardholderName"] => NULL["imageUrl"] => string(90)"https://assets.braintreegateway.com/payment_method_logo/unknown.png?environment=production"["prepaid"] => string(7)"Unknown"["healthcare"] => string(7)"Unknown"["debit"] => string(7)"Unknown"["durbinRegulated"] => string(7)"Unknown"["commercial"] => string(7)"Unknown"["payroll"] => string(7)"Unknown"["issuingBank"] => string(7)"Unknown"["countryOfIssuance"] => string(7)"Unknown"["productId"] => string(7)"Unknown"["uniqueNumberIdentifier"] => NULL["venmoSdk"] => bool(false)["expirationDate"] => string(1)"/"["maskedNumber"] => string(6)"******"
  189. }
  190. }
  191. ["paypalDetails"] => object(Braintree \ Transaction \ PayPalDetails) # 5(1) {
  192. ["_attributes": protected] => array(20) {
  193. ["token"] => string(7)"cb7rgyg"["payerEmail"] => string(22)"branca0508@hotmail.com"["paymentId"] => string(28)"PAY-4TG381575H433483DLGOKXEA"["authorizationId"] => string(17)"9EW6219648914910M"["imageUrl"] => string(89)"https://assets.braintreegateway.com/payment_method_logo/paypal.png?environment=production"["debugId"] => string(28)"a3685df392929, a3685df392929"["payeeEmail"] => NULL["customField"] => string(36)"3728CB3C-8D8F-42E7-914A-E3813937D3F1"["payerId"] => string(13)"MGLJBAXK27EKG"["payerFirstName"] => string(7)"Vanessa"["payerLastName"] => string(6)"Santos"["payerStatus"] => string(10)"UNVERIFIED"["sellerProtectionStatus"] => string(8)"ELIGIBLE"["captureId"] => string(17)"9EW6219648914910M"["refundId"] => NULL["transactionFeeAmount"] => string(4)"0,61"["transactionFeeCurrencyIsoCode"] => string(3)"BRL"["description"] => string(44)"CLARO - 3728CB3C-8D8F-42E7-914A-E3813937D3F1"["taxId"] => string(11)"29122595848"["taxIdType"] => string(6)"BR_CPF"
  194. }
  195. }
  196. ["customerDetails"] => object(Braintree \ Transaction \ CustomerDetails) # 13(1) {
  197. ["_attributes": protected] => array(8) {
  198. ["id"] => string(13)"MGLJBAXK27EKG"["firstName"] => string(7)"Vanessa"["lastName"] => string(6)"Santos"["company"] => NULL["email"] => string(22)"branca0508@hotmail.com"["website"] => NULL["phone"] => string(12)"-12992114868"["fax"] => NULL
  199. }
  200. }
  201. ["billingDetails"] => object(Braintree \ Transaction \ AddressDetails) # 3(1) {
  202. ["_attributes": protected] => array(13) {
  203. ["id"] => NULL["firstName"] => NULL["lastName"] => NULL["company"] => NULL["streetAddress"] => NULL["extendedAddress"] => NULL["locality"] => NULL["region"] => NULL["postalCode"] => NULL["countryName"] => NULL["countryCodeAlpha2"] => NULL["countryCodeAlpha3"] => NULL["countryCodeNumeric"] => NULL
  204. }
  205. }
  206. ["shippingDetails"] => object(Braintree \ Transaction \ AddressDetails) # 15(1) {
  207. ["_attributes": protected] => array(13) {
  208. ["id"] => NULL["firstName"] => NULL["lastName"] => NULL["company"] => NULL["streetAddress"] => NULL["extendedAddress"] => NULL["locality"] => NULL["region"] => NULL["postalCode"] => NULL["countryName"] => NULL["countryCodeAlpha2"] => NULL["countryCodeAlpha3"] => NULL["countryCodeNumeric"] => NULL
  209. }
  210. }
  211. ["subscriptionDetails"] => object(Braintree \ Transaction \ SubscriptionDetails) # 4(1) {
  212. ["_attributes": protected] => array(2) {
  213. ["billingPeriodEndDate"] => NULL["billingPeriodStartDate"] => NULL
  214. }
  215. }
  216. }
  217. }
  218. }
  219.  
  220.  
  221. 4. ePay -> Claro
  222.  
  223. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  224. <soapenv:Header />
  225. <soapenv:Body>
  226.  
  227. <rest of data>
  228. <Phone>12992114868</Phone>
  229. <TransactionID>3728CB3C-8D8F-42E7-914A-E3813937D3F1</TransactionID>
  230. <rest of data>
  231.  
  232. </soapenv:Body>
  233. </soapenv:Envelope>
  234.  
  235. 5. Claro -> ePay
  236.  
  237. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  238. <s:Body>
  239. <DoTransactionUPResponse xmlns="https://epaysvc.epay.com/Contract/V1.0">
  240. <rest of data>
  241.  
  242. <Result>0</Result>
  243.  
  244. <TransactionID>3728CB3C-8D8F-42E7-914A-E3813937D3F1</TransactionID>
  245. <Type>SALE</Type>
  246.  
  247. <rest of data>
  248. </DoTransactionUPResponse>
  249. </s:Body>
  250. </s:Envelope>
  251.  
  252.  
  253. 6. ePay -> PayPal
  254. {
  255. "status": "success",
  256. "transaction_id": "9EW6219648914910M",
  257. "partner_reference_number": "pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739",
  258. "carrier_reference_number": "FB01AF2D61A2"
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement