Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CURRENT FLOW:
- 1. PayPal -> ePay
- {
- "Track-ID": "pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739"
- "country_code": "BR",
- "customer_id": "MGLJBAXK27EKG",
- "customer_details": {
- "email": "branca0508@hotmail.com",
- "phone_number": {
- "country_code": "55",
- "national_number": "12992114868"
- }
- },
- "topup_amount": {
- "amount": "10",
- "currency_code": "BRL"
- },
- <.....>
- }
- 2. ePay -> BrainTree (to check if customer has BA)
- BT Find >> string(13) "MGLJBAXK27EKG"
- 3. BrainTree -> ePay (all data about customer. includes also "billingAgreementId" that comes from BrainTree (which is not the one we need?))
- BT Find << object(Braintree\Customer)#6 (1)
- {
- ["_attributes": protected] => array(21) {
- ["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) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["updatedAt"] => object(DateTime) # 13(3) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["customFields"] => array(2) {
- ["sender_country_code"] => string(2)"BR"["sender_ip_address_during_signup"] => string(10)"10.0.0.100"
- }
- ["creditCards"] => array(0) {}
- ["paypalAccounts"] => array(1) {
- [0] => object(Braintree \ PayPalAccount) # 18(1) {
- ["_attributes": protected] => array(12) {
- ["billingAgreementId"] => string(19)"B-4S480217GD063603C"["createdAt"] => object(DateTime) # 20(3) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["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) {}
- ["token"] => string(7)"cb7rgyg"["updatedAt"] => object(DateTime) # 17(3) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["isChannelInitiated"] => bool(false)["payerInfo"] => NULL["limitedUseOrderId"] => NULL
- }
- }
- }
- ["addresses"] => array(1) {
- [0] => object(Braintree \ Address) # 8(1) {
- ["_attributes": protected] => array(16) {
- ["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) {
- ["date"] => string(26)"2017-08-22 22:08:25.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["updatedAt"] => object(DateTime) # 23(3) {
- ["date"] => string(26)"2017-08-22 22:08:25.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- }
- }
- }
- ["coinbaseAccounts"] => array(0) {}
- ["applePayCards"] => array(0) {}
- ["androidPayCards"] => array(0) {}
- ["amexExpressCheckoutCards"] => array(0) {}
- ["venmoAccounts"] => array(0) {}
- ["paymentMethods"] => array(1) {
- [0] => object(Braintree \ PayPalAccount) # 18(1) {
- ["_attributes": protected] => array(12) {
- ["billingAgreementId"] => string(19)"B-4S480217GD063603C"["createdAt"] => object(DateTime) # 20(3) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["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) {}
- ["token"] => string(7)"cb7rgyg"["updatedAt"] => object(DateTime) # 17(3) {
- ["date"] => string(26)"2017-08-22 22:08:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["isChannelInitiated"] => bool(false)["payerInfo"] => NULL["limitedUseOrderId"] => NULL
- }
- }
- }
- }
- }
- 4. ePay -> BrainTree
- BT Sale >> array(6)
- {
- ["amount"] => string(2)"10"["channel"] => string(11)"Epay_STP_EC"["paymentMethodToken"] => string(7)"cb7rgyg"["options"] => array(2) {
- ["paypal"] => array(3) {
- ["supplementaryData"] => array(24) {
- ["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"
- }
- ["customField"] => string(36)"3728CB3C-8D8F-42E7-914A-E3813937D3F1"["description"] => string(44)"CLARO - 3728CB3C-8D8F-42E7-914A-E3813937D3F1"
- }
- ["submitForSettlement"] => bool(true)
- }
- ["deviceData"] => string(53)"{" correlation_id ":" 63ff0b43c34d4bc1b090c9611c780f0e "}"["orderId"] => string(50)"pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739"
- }
- 5. BrainTree -> ePay
- BT Sale << Object(Braintree\Result\Successful)#20 (4)
- {
- ["success"] => bool(true)["_returnObjectNames": "Braintree\Result\Successful": private] => array(1) {
- [0] => string(11)"transaction"
- }
- ["_attributes": protected] => array(0) {}
- ["transaction"] => object(Braintree \ Transaction) # 12(1) {
- ["_attributes": protected] => array(60) {
- ["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) {
- ["date"] => string(26)"2017-08-22 22:09:19.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["updatedAt"] => object(DateTime) # 7(3) {
- ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["customer"] => array(8) {
- ["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
- }
- ["billing"] => array(13) {
- ["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
- }
- ["refundId"] => NULL["refundIds"] => array(0) {}
- ["refundedTransactionId"] => NULL["partialSettlementTransactionIds"] => array(0) {}
- ["authorizedTransactionId"] => NULL["settlementBatchId"] => NULL["shipping"] => array(13) {
- ["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
- }
- ["customFields"] => array(2) {
- ["sender_country_code"] => string(2)"BR"["sender_ip_address_during_signup"] => string(10)"10.0.0.100"
- }
- ["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) {
- ["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)
- }
- ["paypal"] => array(20) {
- ["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"
- }
- ["statusHistory"] => array(3) {
- [0] => object(Braintree \ Transaction \ StatusDetails) # 14(1) {
- ["_attributes": protected] => array(5) {
- ["timestamp"] => object(DateTime) # 19(3) {
- ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["status"] => string(10)"authorized"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
- }
- }
- [1] => object(Braintree \ Transaction \ StatusDetails) # 9(1) {
- ["_attributes": protected] => array(5) {
- ["timestamp"] => object(DateTime) # 24(3) {
- ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["status"] => string(24)"submitted_for_settlement"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
- }
- }
- [2] => object(Braintree \ Transaction \ StatusDetails) # 26(1) {
- ["_attributes": protected] => array(5) {
- ["timestamp"] => object(DateTime) # 25(3) {
- ["date"] => string(26)"2017-08-22 22:09:24.000000"["timezone_type"] => int(3)["timezone"] => string(3)"UTC"
- }
- ["status"] => string(8)"settling"["amount"] => string(5)"10.00"["user"] => string(28)"vfernandes@epaybrasil.com.br"["transactionSource"] => string(3)"api"
- }
- }
- }
- ["planId"] => NULL["subscriptionId"] => NULL["subscription"] => array(2) {
- ["billingPeriodEndDate"] => NULL["billingPeriodStartDate"] => NULL
- }
- ["addOns"] => array(0) {}
- ["discounts"] => array(0) {}
- ["descriptor"] => object(Braintree \ Descriptor) # 21(1) {
- ["_attributes": protected] => array(3) {
- ["name"] => NULL["phone"] => NULL["url"] => NULL
- }
- }
- ["recurring"] => bool(false)["channel"] => string(11)"Epay_STP_EC"["serviceFeeAmount"] => NULL["escrowStatus"] => NULL["disbursementDetails"] => object(Braintree \ DisbursementDetails) # 16(1) {
- ["_attributes": protected] => array(6) {
- ["disbursementDate"] => NULL["settlementAmount"] => NULL["settlementCurrencyIsoCode"] => NULL["settlementCurrencyExchangeRate"] => NULL["fundsHeld"] => NULL["success"] => NULL
- }
- }
- ["disputes"] => array(0) {}
- ["authorizationAdjustments"] => array(0) {}
- ["paymentInstrumentType"] => string(14)"paypal_account"["processorSettlementResponseCode"] => string(4)"4000"["processorSettlementResponseText"] => string(9)"Confirmed"["threeDSecureInfo"] => NULL["creditCardDetails"] => object(Braintree \ Transaction \ CreditCardDetails) # 11(1) {
- ["_attributes": protected] => array(22) {
- ["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)"******"
- }
- }
- ["paypalDetails"] => object(Braintree \ Transaction \ PayPalDetails) # 5(1) {
- ["_attributes": protected] => array(20) {
- ["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"
- }
- }
- ["customerDetails"] => object(Braintree \ Transaction \ CustomerDetails) # 13(1) {
- ["_attributes": protected] => array(8) {
- ["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
- }
- }
- ["billingDetails"] => object(Braintree \ Transaction \ AddressDetails) # 3(1) {
- ["_attributes": protected] => array(13) {
- ["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
- }
- }
- ["shippingDetails"] => object(Braintree \ Transaction \ AddressDetails) # 15(1) {
- ["_attributes": protected] => array(13) {
- ["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
- }
- }
- ["subscriptionDetails"] => object(Braintree \ Transaction \ SubscriptionDetails) # 4(1) {
- ["_attributes": protected] => array(2) {
- ["billingPeriodEndDate"] => NULL["billingPeriodStartDate"] => NULL
- }
- }
- }
- }
- }
- 4. ePay -> Claro
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
- <soapenv:Header />
- <soapenv:Body>
- <rest of data>
- <Phone>12992114868</Phone>
- <TransactionID>3728CB3C-8D8F-42E7-914A-E3813937D3F1</TransactionID>
- <rest of data>
- </soapenv:Body>
- </soapenv:Envelope>
- 5. Claro -> ePay
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <DoTransactionUPResponse xmlns="https://epaysvc.epay.com/Contract/V1.0">
- <rest of data>
- <Result>0</Result>
- <TransactionID>3728CB3C-8D8F-42E7-914A-E3813937D3F1</TransactionID>
- <Type>SALE</Type>
- <rest of data>
- </DoTransactionUPResponse>
- </s:Body>
- </s:Envelope>
- 6. ePay -> PayPal
- {
- "status": "success",
- "transaction_id": "9EW6219648914910M",
- "partner_reference_number": "pp-df3f32b9-f267-408f-9510-a75b21072db7_1503439739",
- "carrier_reference_number": "FB01AF2D61A2"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement