From c668a00351011f5d907df98e5fd74bb9e87d77e9 Mon Sep 17 00:00:00 2001 From: Luuk Veenis Date: Tue, 10 Jan 2017 09:34:55 -0800 Subject: [PATCH 1/2] Add 'channel' param to payment requests This is used to identify payments processed through Solidus stores. More information can be found here: https://developers.braintreepayments.com/reference/request/transaction/sale/ruby#channel --- .../solidus_paypal_braintree/gateway.rb | 1 + spec/fixtures/cassettes/gateway/authorize.yml | 75 +++---- .../authorize/merchant_account/EUR.yml | 151 ++++++------- .../gateway/authorize/paypal/EUR.yml | 75 +++---- spec/fixtures/cassettes/gateway/capture.yml | 144 ++++++------ spec/fixtures/cassettes/gateway/complete.yml | 133 +++++------ spec/fixtures/cassettes/gateway/purchase.yml | 75 +++---- .../transaction/import/valid/capture.yml | 209 +++++++++--------- .../solidus_paypal_braintree/gateway_spec.rb | 7 + 9 files changed, 442 insertions(+), 428 deletions(-) diff --git a/app/models/solidus_paypal_braintree/gateway.rb b/app/models/solidus_paypal_braintree/gateway.rb index 0b284e72..2af127dc 100644 --- a/app/models/solidus_paypal_braintree/gateway.rb +++ b/app/models/solidus_paypal_braintree/gateway.rb @@ -209,6 +209,7 @@ def transaction_options(source, options, submit_for_settlement = false) ALLOWED_BRAINTREE_OPTIONS.include?(key) end + params[:channel] = "Solidus" params[:options] = { store_in_vault_on_success: true } if submit_for_settlement diff --git a/spec/fixtures/cassettes/gateway/authorize.yml b/spec/fixtures/cassettes/gateway/authorize.yml index 229a78aa..a92fb028 100644 --- a/spec/fixtures/cassettes/gateway/authorize.yml +++ b/spec/fixtures/cassettes/gateway/authorize.yml @@ -9,6 +9,7 @@ http_interactions: 10.00 + Solidus true @@ -21,7 +22,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -34,7 +35,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:38:06 GMT + - Tue, 10 Jan 2017 17:32:43 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -55,49 +56,49 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"cd6cee1cd37c82bf8bba08b877de993b" + - W/"3b7e0b3b941e489be8f77db99e3f0f49" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 1ecc3bbd-1f19-4cf2-92d3-121b669c3086 + - 9560cb61-d1d3-462b-8d51-3377fa79d90c X-Runtime: - - '0.608174' + - '0.482152' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIAM6xPFgAA+RYTW/jNhC951cEvjOyHDtxAkVpgaJAW3SBYjc99BJQ4sji - RiJVknLs/fU7FCVZsqgkBXoo0Js18zjkfHDm0dHjoSwu96A0l+JhEV4tF5cg - Usm42D0snr78TLaLx/giMooKTVODqPji8jLiLL5Oq2+vkGdRgB9Wpg01tY5p - bXKp+DdgUdCKrNYcK4g1LSAKmp9WltZK4W5HwrUkuCnET59/ioKp2IJpKWth - 4nB5tVxGQftlFSWoNKfCEJqmVkjwPNpAmcjCRIFP25y2TohHdyl48bAwqoZF - 4KxTtKU+BJWKIdKjSBVQA4xQc2l9f1gw/DS8hEW8WoY3JAzJavtltbq/3t4v - N39hBPoFzfq6Yv9s/WlBG2dtJHpgP1zytrfbzXp7d9slD6UZV9oQQUs4Pz8q - CzqvS2VZUXH0aKCkvPDIXyHR3PhsVbkUPnlGD5OoBkO3ooQXBRZt76LPyL/v - oTYKAIuCMQVa+0JwMCCYTcUspJApLbjxmVewwxvni5PEq1W4y3G3DpeYyKGo - OzYWqjrOe+XUdgWhRZXT1YdQ1++hRI1J4ek0YYMcoWtZLZjvtvQa3VY7VYoe - R0qM56Aj+YxUVBmO4dBgTAEl4I0dr/AZP7Wu98wPzCbUpLkXk/Oq+l+W5BsF - 8p+pxWF22gZJMg4F020t7DUBpaQiGKNKCg1e1xrcwPUxOv4dJ9WbgM7EOGtn - oF+clTcxjRv7/XT/qdBCdzgfXukRNV/BV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+ H4sIALsadVgAA+RYTW/jNhC951cEvjOyYqdxForSAosCPbSH7qZFe1lQ4sji + hiJVknLs/vodipIsRVSSAj0U6M2aeRxyPjjz6OThWInLA2jDlbxfxVfr1SXI + XDEu9/erx88/kt3qIb1IrKbS0NwiKr24vEw4S+vqme1p8TWJ8MPJjKW2MSlt + bKk0/xtYEnUip7WnGlJDBSRR+9PJ8kZr3O1EuFEEN4X08dPHJJqLHZhWqpE2 + jddX63USdV9OUYHOSyotoXnuhATPYyxUmRI2iULa9rRNRgK6S8nF/crqBlaR + t07Rln4XVGmGyIAi10AtMELtpfP9fsXw0/IKVun1Or4l65jE68/x7YfN9Yft + 5k+MwLCgXd/U7J+tPy/o4mysQg/ch0/ebrfZbra3133yUFpwbSyRtIKX50el + oMu6XFU1laeABirKRUD+DJnhNmSrLpUMyQt6nEU1GruVZFwILNrBxZCRf99D + YzUAFgVjGowJheBoQTKXikWIUDkV3IbMa9jjjQvFSeHVEv5y3G3j9W0SjUX9 + sbFQ9WnZK692KwgVdUmv34XavIWSDSaF5/OEjXKErhWNZKHbMmhMV+1Ua3qa + KDGeo44UMlJTbTmGw4C1AirAGztdETJ+bl1vmR+ZzajNyyCm5HX9vyzJVwrk + P1OL4+x0DZIUHAQzXS0cDAGtlSYYo1pJA0HXWtzI9Sk6/Rkn1auA3sQ0ay9A + P3krr2JaNw6H+f5zoYPucT480xNqvoKvchw5Zp7YpNYqx90wDv3toC28tfT7 + H79+/niHvec10NTK9Cjx2g3zJe3CSosVnP5Qo+bgSMYSog0tY9ydBIM/h818 + PSieuwQVmHhcgbWTgZ5HpHFUAHfx834BZemReJISVMERqrof55lSAqhcpQUV + xhGkAdDTB/SC5FT3s9qqJ5Dp5mZ/3G8R3n55TcZlul3H17uda7dy3Em2abzb + xUnUfXSXBY2SlpD9xg3Fahm++2ZRc+2TWSlpyzRGzjATzrAnoBq5yfV6Am6l + 3b7d7Cau1bS08vHTeaKfpedTlkq04Q43EF7RPZBGi7S0tjYfoogabNLmKtOU + S3dxuoq/ws4Z1fTkeveXCrBa2Reh9io6oP9Xtdw/gDxwraQD3BsqWaaOSJMG + +12301BT5E6/KFeA/rfXlECFLfHEyGblk1TPMolGMg9ikHF71vvPTtVoTBxW + 4b4RjsSNUC81wyhw7BSn3Rk6knXnpSetxAjRC7rwGdNgM8RhJp/OmIl02lxV + QZyWyhxSt91c2sdJsSZvWfd567PMgxrJ/2qgu0koxshz7MU6pcXNze32rri5 + K+KCbXbsu7zIYxQU25tdVmApLi71lg8gK0UMe1q4aYO+Y5TTm9Y9aUjJsSz1 + acIYhmnbIgANdQl01xOpOSqq+p10fcAPFl59S7WIpeeQD6jBCAyV/33/GnK1 + jyEzfXjcUUc8xyjsbJDSmuOR5nLvcPTS40HSRcn3SEHDvKnJTK55vcirRvqh + o7WkkdQ4xxUjSF2Ii2egB7xA4rG0DWLxyC/2cYOC4EwIkELGTVveQR14K6qv + t4XutPSswX4yP9vUKBIu9x5GvxZKeND7WYGPVAki/aQEZ43Bku4EnrXqg5tw + BcDSbHJ7q2fiUzrTYiyyRhtPfBlYfN6Zvm1NVOEEjVhzePspZvY/wDvhcHRO + Y7vW4WO4FwSWK3K9kMEmzwOkGNOy4LvzvG4shOqjmzOES+RujX+FuNnq+8wX + 12eSaAk0ZT8jR6ckaUyAFkFv22op01u2Bl5lS+wrBO+YKz7AoxdqGrFJB0kv + vgEAAP//AwC3kSJ/aBIAAA== http_version: - recorded_at: Mon, 28 Nov 2016 22:38:06 GMT + recorded_at: Tue, 10 Jan 2017 17:32:43 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml b/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml index 69b0d799..2e0d71e0 100644 --- a/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml +++ b/spec/fixtures/cassettes/gateway/authorize/merchant_account/EUR.yml @@ -9,6 +9,7 @@ http_interactions: 10.00 + Solidus true @@ -25,7 +26,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -38,7 +39,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:50:58 GMT + - Tue, 10 Jan 2017 17:34:38 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -59,54 +60,54 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"df9df741d6d045858b07907cd3c7e618" + - W/"beaea1d70d759572ad5305219d8fcd29" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 2ed35eaa-7d00-4fc4-bc91-128451104733 + - 0d2da15d-1a9b-4f5c-b653-140560207d21 X-Runtime: - - '0.674800' + - '0.598435' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIANK0PFgAA+RYTW/jNhC9768wfGdkOXbiBIrSHrpAC7RA200PvQSUOLK4 - kUgtSTl2f32HoiRLFpWkQA8FerNmHoecD848Ono8lsXiAEpzKR6W4dVquQCR - SsbF/mH59OUz2S0f40+RUVRomhpExZ8Wi4iz+GZbZitId1GAH1amDTW1jmlt - cqn4X8CioBVZrTlVEGtaQBQ0P60srZXC3U6Ea0lwU4h/ePotCqZiC6alrIWJ - w9XVahUF7ZdVlKDSnApDaJpaIcHzaANlIgvz3Bj0IZoT1wnx6BaCFw9Lo2pY - Bm4HivbUh6BSMUR6FKkCaoARahbW/4clw0/DS1jG61V4Q8KQrHdf1uv77ep+ - u/sTo9AvaNbXFftn688L2lhrI9ED++ESuL25Da+vN9sugSjNuNKGCFrC5flR - WdB5XSrLioqTRwMl5YVH/gqJ5sZnq8ql8MkzepxENRi6FSW8KLBwexd9Rv59 - D7VRAFgUjCnQ2heCowHBbCpmIYVMacGNz7yCPd46X5wkXq/CXZC7Tbi6jYKh - qDs2Fqo6zXvl1HYFoUWV0/WHUNfvoUSNSeHpNGGDHKFrWS2Y77b0Gt1WO1WK - nkZK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guRU97PaqieQ6dPmqjxYhLdfXpNxmW7W8cV269qtHHeSTRpv + t3ESdR/dZUGjpCVlv3FDsVqG775Z1Fz7ZFZK2jKNkTPMhDPsEahGbnKxnoBb + abdvN7uJazUttXz4fJroJ+nplKUSbbjDDYRXdAek0SItra3NbRRRg03anGea + cukuTlfx59g5o5oeXe9+rACrlT0KtVPRHv0/r+XuHuSeayUd4M5QyTJ1QJo0 + 2O+6nYaaInf6pFwB+t9eUwIVtsQTQ/ogn6R6lkk0knkQg4zbk95/dqpGY+Kw + CneNcCRuhHqpGUaBY6c47U7Qkaw7Lz1qJUaIXtCFz5gGmyEOM/l0wkyk0+aq + CuK0VOaQuu3m0j5OijV5y7pPW59kHtRI/lcD3U1CMUaeYy/WKS2urq43N8XV + TREX7HLLvsmLPEZBsbnaZgWW4uJSb3kPslLEsKeFmzboO0Y5vWnds4aUHMtS + HyeMYZi2LQLQUJdAdz2RmqOiqt9J1wf8YOHV91SLWHoS+YAajMBQ+d/2LyJX + +xgy04fHHXXEc4zCzgYprTkeaS73DkcvPR4kXZR8jxQ0zJuazOSa14u8aqQf + OlpLGkmNc1wxgtSFuHgGesALJB5L2yAWj/xiHzcoCM6EAClk3LTlHdSBt6L6 + elvoTkvPGuwn87NNjSLhcm9i9GuhhAe9nxX4SJUg0s9KcNYYLOlO4Fmr3rsJ + VwAszSa3t3omPqUzLcYia7TxxJeBxeed6dvWRBVO0Ig1h7efYmb/BbwTDgfn + NLZrHT6Ge0FguSLXCxls8jxAijEtC747z+vGQqg+ujlDuETu1vhXiJutvs88 + uj6TREugKfsZOTolSWMCtAh621ZLmd6yNfAqW2JfIXjHXPEBHr1Q04hNOkj6 + 4W8AAAD//wMA7EFoN2wSAAA= http_version: - recorded_at: Mon, 28 Nov 2016 22:50:58 GMT + recorded_at: Tue, 10 Jan 2017 17:34:38 GMT - request: method: get - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/65mf0ec8 + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/grdwps0e body: encoding: US-ASCII string: '' @@ -116,7 +117,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -127,7 +128,7 @@ http_interactions: message: OK headers: Date: - - Mon, 28 Nov 2016 22:50:59 GMT + - Tue, 10 Jan 2017 17:34:39 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -148,49 +149,49 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"ee035054438bf3a936b36b626e170ed1" + - W/"42351ded9e7c8dc5098d2adb44493ac3" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - fbef18a3-7117-4924-b333-0f449ce3c21f + - 74a2971e-eb4c-4889-9f8a-5eaf5e5b9870 X-Runtime: - - '0.237052' + - '0.194759' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIANO0PFgAA+RYTW/jNhC9768wfGdkOXbiBIrSHrpAC7RA200PvQSUOLK4 - kUgtSTl2f32HoiRLFpWkQA8FerNmHoecD848Ono8lsXiAEpzKR6W4dVquQCR - SsbF/mH59OUz2S0f40+RUVRomhpExZ8Wi4iz+GZbZitId1GAH1amDTW1jmlt - cqn4X8CioBVZrTlVEGtaQBQ0P60srZXC3U6Ea0lwU4h/ePotCqZiC6alrIWJ - w9XVahUF7ZdVlKDSnApDaJpaIcHzaANlIgvz3Bj0IZoT1wnx6BaCFw9Lo2pY - Bm4HivbUh6BSMUR6FKkCaoARahbW/4clw0/DS1jG61V4Q8KQrHdf1uv77ep+ - u/sTo9AvaNbXFftn688L2lhrI9ED++ESuL25Da+vN9sugSjNuNKGCFrC5flR - WdB5XSrLioqTRwMl5YVH/gqJ5sZnq8ql8MkzepxENRi6FSW8KLBwexd9Rv59 - D7VRAFgUjCnQ2heCowHBbCpmIYVMacGNz7yCPd46X5wkXq/CXZC7Tbi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+ fN0rnrsEFZh4XIG1k4GeR6RxVAB38fN+AWXpgXiiElTBAaq6H+eZUgKoXKUF + FcaRpAHQ0wf0guRU97PaqieQ6dPmqjxYhLdfXpNxmW7W8cV269qtHHeSTRpv + t3ESdR/dZUGjpCVlv3FDsVqG775Z1Fz7ZFZK2jKNkTPMhDPsEahGbnKxnoBb + abdvN7uJazUttXz4fJroJ+nplKUSbbjDDYRXdAek0SItra3NbRRRg03anGea + cukuTlfx59g5o5oeXe9+rACrlT0KtVPRHv0/r+XuHuSeayUd4M5QyTJ1QJo0 + 2O+6nYaaInf6pFwB+t9eUwIVtsQTQ/ogn6R6lkk0knkQg4zbk95/dqpGY+Kw + CneNcCRuhHqpGUaBY6c47U7Qkaw7Lz1qJUaIXtCFz5gGmyEOM/l0wkyk0+aq + CuK0VOaQuu3m0j5OijV5y7pPW59kHtRI/lcD3U1CMUaeYy/WKS2urq43N8XV + TREX7HLLvsmLPEZBsbnaZgWW4uJSb3kPslLEsKeFmzboO0Y5vWnds4aUHMtS + HyeMYZi2LQLQUJdAdz2RmqOiqt9J1wf8YOHV91SLWHoS+YAajMBQ+d/2LyJX + +xgy04fHHXXEc4zCzgYprTkeaS73DkcvPR4kXZR8jxQ0zJuazOSa14u8aqQf + OlpLGkmNc1wxgtSFuHgGesALJB5L2yAWj/xiHzcoCM6EAClk3LTlHdSBt6L6 + elvoTkvPGuwn87NNjSLhcm9i9GuhhAe9nxX4SJUg0s9KcNYYLOlO4Fmr3rsJ + VwAszSa3t3omPqUzLcYia7TxxJeBxeed6dvWRBVO0Ig1h7efYmb/BbwTDgfn + NLZrHT6Ge0FguSLXCxls8jxAijEtC747z+vGQqg+ujlDuETu1vhXiJutvs88 + uj6TREugKfsZOTolSWMCtAh621ZLmd6yNfAqW2JfIXjHXPEBHr1Q04hNOkj6 + 4W8AAAD//wMA7EFoN2wSAAA= http_version: - recorded_at: Mon, 28 Nov 2016 22:50:59 GMT + recorded_at: Tue, 10 Jan 2017 17:34:39 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml b/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml index a973a287..601d5eed 100644 --- a/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml +++ b/spec/fixtures/cassettes/gateway/authorize/paypal/EUR.yml @@ -9,6 +9,7 @@ http_interactions: 10.00 + Solidus true @@ -25,7 +26,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -38,7 +39,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:51:00 GMT + - Tue, 10 Jan 2017 17:34:39 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -59,49 +60,49 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"634371f7941a37d8394dd0cee1bfdfc8" + - W/"860690d92af64c505acd7ca848b69ff4" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 9a598130-3a43-4aa0-820b-f9b57eebd404 + - 45e56308-c113-4062-8268-d0ebc779b9e0 X-Runtime: - - '0.548090' + - '0.441603' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIANS0PFgAA+RYwXLjNgy971d4fGdkOXbWyShKe+jO9NA9tJudtpcMJUIW - G4nUkpRj9+sXFCVZsqgknemhM71ZwCMIgCDw6OjhWBaLAyjNpbhfhler5QJE - KhkX+/vl45dPZLd8iD9ERlGhaWoQFX9YLCLO4urmepfBtzIK8MPKtKGm1jGt - TS4V/xtYFLQiqzWnCmJNC4iC5qeVpbVSuNuJcC0JbgrxT4+/RsFUbMG0lLUw - cbi6Wq2ioP2yihJUmlNhCE1TKyTojzZQJrIwT41BH6LxuE6IR7cQvLhfGlXD - MnA7ULSn3gWViiHSo0gVUAOMULOw8d8vGX4aXsIyXq/CGxKGZL37sl7fbcO7 - 1epPzEK/oFlfV+y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ta4V4idra7P + PNk+EwdLoCn7GTk6JUljArQIet9WS5neszXwKlNgXyF4x2zxAR49l9OITTpI + 8uk7AAAA//8DAE4hUrtsEgAA http_version: - recorded_at: Mon, 28 Nov 2016 22:51:00 GMT + recorded_at: Tue, 10 Jan 2017 17:34:39 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/capture.yml b/spec/fixtures/cassettes/gateway/capture.yml index 1f6fd415..00000025 100644 --- a/spec/fixtures/cassettes/gateway/capture.yml +++ b/spec/fixtures/cassettes/gateway/capture.yml @@ -18,7 +18,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.68.1 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -31,7 +31,7 @@ http_interactions: message: Created headers: Date: - - Mon, 24 Oct 2016 23:13:16 GMT + - Tue, 10 Jan 2017 17:32:44 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -52,52 +52,52 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"23377b1562f1d784c226a94617768a57" + - W/"dcf1b461e4acc9eff70a27eea41ad2ae" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 01a3159c-c7db-4d7d-9a35-1fbad31941df + - d2b6124e-6e2f-4a96-8808-14ba4cad3656 X-Runtime: - - '0.346559' + - '0.444186' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIAIyVDlgAA+RXS2/jNhC+768IfGdkO8E2u1CUFihaFGj3sps97CWgxLHF - hiJVPhx7f32HIiVLEZWkl6JAAR+smY9DzoMzH/O7YyMuDqANV/J2tblcry5A - Vopxub9d3X/5hdys7op3udVUGlpZRBXvLi5yzor91XHfsO+QZ/jhZcZS60xB - na2V5t+B5VkUea09tVAYKhDf/fWyymmNu50IN4rgplDcf/45z+ZiD6aNctIW - 1+vL9TrP4pdXNKCrmkpLaFV5IcHzGAtNqYTNs5S2O60rSUJ3Ibm4X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DfrDw4suoQyw9bkKEDJLcoZR/7N82vpiR6pue1/uj - jmiLUdiooKAtxyPN5cHh7LnHgyRGKbQ8QdM0yJWm0rxdpEkj/dCiOg5IWhzL - ihFkIsTHM9nMJkg8lrZJLB752T6+7xNs8QmOx7jp6jWpg2BF9X1qod0svVKw - QczPNjWK/Mm/btGvhRIe9KH145NTwtwq5vzgZ9UOYGnK+G3VEwnZnGkxDKXT - JlBYBhYfaqZvQRNVOjcj/pvefoqZPejfCIejDwC2Xp0+hn8LYKUia0sZdFWV - oLeYkQXfveets5AqjTgzCJfIwlx4T/g5GVrMg28xebYEmvKYkaNTujOmMoug - 12115Oc1WwNDsjW2FILXy9cd4NF3ahqxSfMo3v0NAAD//wMA2v2wKDESAAA= + H4sIALwadVgAA+RXTW/jNhC951cYvjOyvUaTDRSlBYoWBdo9dDc99BJQ4thi + TZEsSTl2f32HEiVLEZVkL4sCvUkzj0POB2ce04dTJRZHMJYreb9cX6+WC5CF + Ylzu75ePX34it8uH7Cp1hkpLC4eo7GqxSDnLDlDI704HnSb442XWUVfbjNau + VIb/AyxNgshr3VlDZqmANGk+vayojcHdzoRbRXBTyB4//5gmU7EH00rV0mXb + 1fVqlSbhzysqMEVJpSO0KLyQ4HmsgypXwqVJTNucts5JRLeQXNwvnalhmbTW + Kdoy74IqwxAZURQGqANGqFt43++XDH8dr2CZbVbrG7Jak/Xqy/rm7sPmbrv9 + EyPQL2jW15p93frLghBn6xR64H+a5L08IQp33FhHJK0gohR0XleoSlN5jmig + olxE5M+QW+5itnSpZEy+o6dJUJOhV2nOhcCa/cYeWmcAsCYYM2BtLAQnB5L5 + TMxChCqo4C5m3sAeL1wsTgpvlmjvxsftenWTJkNRd2ysU3Oe96pV+xWECl3S + zbtQH95CyRqTwotpwgY5Qtd2tWSxy9JrbCh2agw9j5QYz0FDihnR1DiO4bDg + nIAK8MKOV8SMXzrXW+YHZnPqijKKKbnW/8uSfKVA/jO1OMxO6I9kx0EwG2rh + aAkYowzBGGklLURda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1wVcwxEgAA http_version: - recorded_at: Mon, 24 Oct 2016 23:13:15 GMT + recorded_at: Tue, 10 Jan 2017 17:32:44 GMT - request: method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/g3xgmdze/submit_for_settlement + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/kecn6xkp/submit_for_settlement body: encoding: UTF-8 string: | @@ -111,7 +111,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.68.1 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -124,7 +124,7 @@ http_interactions: message: OK headers: Date: - - Mon, 24 Oct 2016 23:13:17 GMT + - Tue, 10 Jan 2017 17:32:45 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -145,48 +145,48 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"7762cc7e611a95cd8d04db5a7dac46bc" + - W/"2017c70238d2e515ed0f8ae7ed42d778" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 8f1cf447-a9cc-42bc-96cd-ad5491519a0d + - 6084f954-2473-4d2f-b6b0-73c0d972937c X-Runtime: - - '0.292301' + - '0.219741' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIAI2VDlgAA+RYTW/jNhC9768wfGdkO8Emu1CUFihaFGj3sps97CWgxLHF - hiJVfjj2/voOJUqWLCoxUGBRoEAO1szjcGY4nHlM+nCoxGIP2nAl75frq9Vy - AbJQjMvd/fLxy6/kbvmQvUutptLQwiIqe7dYpJxlu+vDrmLfIU3ww8uMpdaZ - zLi84tYCe9oq/WTAWgEVSJsmAeCx9lhDZqjA1c1PLyuc1rj3kXCjCLoA2ePn - X9JkKvZgWiknbbZeXa1WaRK+vKICXZRUWkKLwgsJemcsVLkS6EJM2/juchLR - LSQX90urHSyT1jpFW/oiqNIMkRFFoYFiegi1Cx/7/ZLhp+UVLLPN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ydQfo+k6MMzZqHunN3wAAAP//AwDD1zUWUhMAAA== http_version: - recorded_at: Mon, 24 Oct 2016 23:13:16 GMT + recorded_at: Tue, 10 Jan 2017 17:32:45 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/complete.yml b/spec/fixtures/cassettes/gateway/complete.yml index 808e0d3c..d429d81e 100644 --- a/spec/fixtures/cassettes/gateway/complete.yml +++ b/spec/fixtures/cassettes/gateway/complete.yml @@ -16,7 +16,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -29,7 +29,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:44:07 GMT + - Tue, 10 Jan 2017 17:33:17 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -50,40 +50,40 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"88d6098160c469b73f51c9c4804d4478" + - W/"64f8f70697b977da04e1558311a3734a" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - aa21697f-8a2c-40f0-a8c1-d5fdb35ad5cb + - 4937a9aa-32bd-4eb1-9fd9-3834e7fffb9f X-Runtime: - - '0.399298' + - '0.427325' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIADezPFgAA6xVy3LbOgzd5ys82jN6RK7ljMzsuuymzV1006FEyGJNkSpJ - Ofb9+pKyXo4t1510JxwckBBwCKQvh4ov9qA0k2LjhY+BtwCRS8rEduO9fvuM - Eu8FP6R5o42sQOGHxSJlFCfBeh0+BUHqW8Nh1peXRBhk7ZWi23X0c5VVq2K3 - LJ9Sf+p17IIpbZAgFSwE4xvPqAY8v3VxMufJZVUTcbzAoSKMX6B1KcXlGQU5 - XGBvkGlmrtyngBigiJiFOdaw8ag1DavAw1EQfkJhiKLkWxQ9x/FzsPqe+mNA - G9/U9O/ix4DT/W3NUcGAUz2kR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OeVBUlyMMFjgVwcYGWuZKXZ2Sw + v8A+MDHcXrlPI1hkBOzEHkrcBMyZlhcY0Nk0WpFpRKLpt2j1Mp+/RE8/4rAP + qOOrkv1dfB9wvL+uOck4Cma6lBi3JAXNTHMoaA2HwHtP/UfEYQkXwnWTAGMa + jWnxYx+3WdvBBmsbTU6aPER77ngXG8JoL9vLrne08RqrEW2b9wgJ9xYl80W7 + SRMqBcHt2FUat07/I85SGQuCuEeB9HkRTVdxOISGv1NJqw81TECUOcxGf/yc + Ob+HKSvXA57+gXqr4J+TdHPKJ4VdnxGOyNLJVdLFNJqt154jO9xrmvjr6Hdu + wGXW2UNGrgRzMh0rgVecn0UcBH2TO6k+pDupx3rasZQqI9yYCmSK1BMv0S7i + 85W9/+31TK9r66RL374OmB3a8hkm3PZ/fDR7ZwaVaPNOlBIIMqC+cp5aO3ty + pV1XiHswlfD5Dw4997QhuC+5rvMhhZI2p9EsDi/AK+wDgnbV80U4R0/YyM5z + z0AYbKIGmeQIwuZOJ9inPcBaGi9gi6TSgubWluYlDMEYtOYx0cCln0pb94Mf + cHh00glLOBQo7c8Cba7YT6G2Knx3En0s5fYV5TvXSnrCxoBkidq7gdud393o + 5OQfQwJy16d2grbUeqYuaLReR3HYGK3PpaKVGEi7BTqCxhKcjr4o52u+e59i + VVqv6D6+x1qaqRKTal76XpzuoP6VWbVDSVdmuVoc4vBotb5K8l9VPcqSWtOu + MtytOE0hWzr+c7Z8zqKMzdfsKc3SyAHZYrlOMqeZ0dDu7H8wmN5RFooYthvR + VOcfRGiXxvHFXa1I/diHe/kEqEdf3IxBvLrWz2fkxeL+i9Fxe2nfXtm3FvYd + 6/quZX1zVd9Y1Heu6XuX9L0r+u4F/cf1/E9WyKdfQBwOxNYZ6MxeTvThNwAA + AP//AwCGkwanNwwAAA== http_version: - recorded_at: Mon, 28 Nov 2016 22:44:07 GMT + recorded_at: Tue, 10 Jan 2017 17:33:17 GMT - request: method: post uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions @@ -94,12 +94,13 @@ http_interactions: 55.00 ORDER0-PAYMENT0 + Solidus true true - cxc4b4 - 80991300 + 7s574y + 56824620 sale headers: @@ -108,7 +109,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -121,7 +122,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:44:08 GMT + - Tue, 10 Jan 2017 17:33:18 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -142,50 +143,50 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"4f419d82edd9b866f15bbadc1d260711" + - W/"db0d519f2497fc376573469cae05e7a4" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 5efa9568-865a-4235-a404-07a474780d63 + - 732c5fea-895d-407b-9488-d5b18412f9ce X-Runtime: - - '0.540802' + - '0.593593' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIADizPFgAA9xYUW/bOAx+768o8q46TpM1LVz3BnQH3MN2h60dbvdSyDYd - 62pLniSnSX/9KMt27Fhuew8DhnuLyU8USVHkpwQ3uyI/3YJUTPDrmX82n50C - j0XC+OZ6dn/3O1nPbsKTQEvKFY01osKT09OAJeEavi8vVs+PgYcfRqY01ZUK - VRUVTGtIHlIhHxRonUMBXAdeAzBYvS8hVDSHwKt/GllcSYl77wlTgqALEN5/ - uQ28sdiAaSEqrsPV6mw+D7zmyygKkHFGuSY0jo2QoHdKQxGJHF1waWvfq4g4 - dKec5dczLSuYedY6RVvyTVAhE0Si/T8/3374PCd/vf/28cOnO/S209RRS6CY - LEL1qcnE9SzBT80KmIWLuf+O+D5ZrO8Wi6vl8mq+/gfz0S2o11dl8t/WHxY0 - WVdaYDzmoznY+eWlf27Sal1Eacqk0oTTAo7DRGVOp3WxKErK9w4NFJTlDvkT - RIppl60yE9wlT+lulHy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NvKqNuCrj3b0Ei6QztbuYWbphmu9 + D7b1RsEcaEwIB4GOeeOQE86CXrbVsMiXbPVU0+TYVwjeMVt8gK5ncpyxUQeJ + 3/wLAAD//wMASXGQOpITAAA= http_version: - recorded_at: Mon, 28 Nov 2016 22:44:08 GMT + recorded_at: Tue, 10 Jan 2017 17:33:18 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/gateway/purchase.yml b/spec/fixtures/cassettes/gateway/purchase.yml index fad5160f..4b7304a8 100644 --- a/spec/fixtures/cassettes/gateway/purchase.yml +++ b/spec/fixtures/cassettes/gateway/purchase.yml @@ -9,6 +9,7 @@ http_interactions: 10.00 + Solidus true true @@ -22,7 +23,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -35,7 +36,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:35:29 GMT + - Tue, 10 Jan 2017 17:33:45 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -56,49 +57,49 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"5ac53de82e8d9ccdf0fc6c299d11e254" + - W/"198bfe4bfaee7c693315251baec4ca03" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 2e0ceac8-87e3-4fb3-98ed-f11cb26b4003 + - de393fb7-38b7-4c14-85de-55f4761a7b73 X-Runtime: - - '0.571147' + - '0.731612' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIADGxPFgAA+RYUW/jNgx+768I8q46TpO7tHB9GzDcMGAbMNx1G/ZSyBYd - a7UlT5LT5H79KMt27FhuO2ADDthbTH6iSIoiPyX6cCyLxQGU5lLcL8Pr1XIB - IpWMi/398uHzR7JbfoivIqOo0DQ1iIqvFouIs7h8vmX5YVdGAX5YmTbU1DrW - dVJyY4A9ZlI9ajCmgBKEiYIWYLHmVEGs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UiO1UYwgmyMuu4G2+AyJbmkbxKLL + z/Zxs5PgmAzwZMZNe+ODOvBWVH8FFxr20ksPW+zct6lR5KDuLwKMa+FWD3o/ + PvHdLkGkn5XgrDF4yzuBJ/L66IZ+AbA0rt3e6on4I51pMRdZo41/CzCw+OI1 + fSefqMIHNHpIhLefYmZ/jbwRDicXNE4wHXbDPaqwXJH+hgw2eR54J+CxLMTu + Iq8bC6H66EYv4RLpbOMfZo5u+Nb74FpvEi2BpoRwFOiUN4454SLodVsti3zN + 1kA1bYl9heAdc8UH6HqhphmbdJD03d8AAAD//wMAQISjpokTAAA= http_version: - recorded_at: Mon, 28 Nov 2016 22:35:29 GMT + recorded_at: Tue, 10 Jan 2017 17:33:45 GMT recorded_with: VCR 3.0.3 diff --git a/spec/fixtures/cassettes/transaction/import/valid/capture.yml b/spec/fixtures/cassettes/transaction/import/valid/capture.yml index 418cd855..803755fe 100644 --- a/spec/fixtures/cassettes/transaction/import/valid/capture.yml +++ b/spec/fixtures/cassettes/transaction/import/valid/capture.yml @@ -16,7 +16,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -29,7 +29,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:33:25 GMT + - Tue, 10 Jan 2017 17:56:05 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -50,40 +50,40 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"68013348aead3241105a2b3b0c9be8a9" + - W/"a99f981e6a0f42b93fad89a4c0162b87" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 391ca978-ac89-450f-9594-a2977d4e6024 + - a8a04cba-4bec-4fce-a6af-fb8e596fab34 X-Runtime: - - '0.409511' + - '0.488778' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIALWwPFgAA6xVu3bbMAzd8xU+2hlZ8j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jNkt2mWRoikM3myyRDzYyGdmd/w2B6BVkoYthm + RFOdfxChMY39iztZkfqxD/fyAVCPvqgZg3Byrb+fkUeL+xOj4/zSPr+yzy3s + C9b1Rcv67Ko+s6gvXNOXLulLV/TFC/rD9fwtK+TLLyDyB2LrDECzl1N89R8A + AP//AwDKz0k/NwwAAA== http_version: - recorded_at: Mon, 28 Nov 2016 22:33:25 GMT + recorded_at: Tue, 10 Jan 2017 17:56:05 GMT - request: method: post uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions @@ -94,11 +94,12 @@ http_interactions: 15.00 R999999999-ABCD1234 + Solidus true - 9r6ydd - 12963672 + 4xrjzj + 20011608 sale headers: @@ -107,7 +108,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -120,7 +121,7 @@ http_interactions: message: Created headers: Date: - - Mon, 28 Nov 2016 22:33:26 GMT + - Tue, 10 Jan 2017 17:56:05 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -141,54 +142,54 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"a74b437337340b43993a966359e935d9" + - W/"98f398ec03a5e317a4cd4efbac0b2774" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - 8eda0d89-2663-464a-94df-f4bc57151a76 + - a7076dca-c7f8-48fb-a213-30f156f0173c X-Runtime: - - '0.439095' + - '0.461658' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIALawPFgAA9xYTW/jNhC951cEvjOy7MRrB4rSbRcFeugC7W4KtJeAEkcW - G4nUkpRj99d3KEqyFFFJeihQNCdr5nHI+eDMY6L7Y1lcHkBpLsXdIrxaLi5B - pJJxsb9bPHz9kWwX9/FFZBQVmqYGUfHF5WXEWZym2bfTkm2iAD+sTBtqah3T - 2uRS8b+ARUErslpzqiDWtIAoaH5aWVorhbudC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RKPpYwXi0d+ + to8dFARngocUMq7b8vbqwFmRfb0tdKelFw32k/nZpkaRcNnHMfq1UMKD3s0K + fLEKKJOvsuSs0VjSncCxVrW3Ey4HWJpNdm/5SFxKZ1qMRdoo7YgvA4MvO923 + rYnKn6ARa/ZvP8XM/inwRjgcrNPYrpX/GPYFgeWKXM9nsMkyDynGtCz4bj2v + GwO++ujmDOECuVvjXiF2tro+c2f7TBwsgabsZ+TolCSNCdAi6HVbLWV6zdbA + q0yBfYXgHbPFB3j0XE4jNukgybu/AQAA//8DAMf0Ajp1EgAA http_version: - recorded_at: Mon, 28 Nov 2016 22:33:26 GMT + recorded_at: Tue, 10 Jan 2017 17:56:05 GMT - request: method: put - uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/ccfqy0d6/submit_for_settlement + uri: https://api.sandbox.braintreegateway.com/merchants/7rdg92j7bm7fk5h3/transactions/1jzd23yd/submit_for_settlement body: encoding: UTF-8 string: | @@ -202,7 +203,7 @@ http_interactions: Accept: - application/xml User-Agent: - - Braintree Ruby Gem 2.66.0 + - Braintree Ruby Gem 2.69.1 X-Apiversion: - '4' Authorization: @@ -215,7 +216,7 @@ http_interactions: message: OK headers: Date: - - Mon, 28 Nov 2016 22:33:26 GMT + - Tue, 10 Jan 2017 17:56:07 GMT Content-Type: - application/xml; charset=utf-8 Transfer-Encoding: @@ -236,50 +237,50 @@ http_interactions: Content-Encoding: - gzip Etag: - - W/"598cd54ba89a8014518a8e3c03027efb" + - W/"05018ec8a9afe4cab6d613847487fe90" Cache-Control: - max-age=0, private, must-revalidate X-Request-Id: - - bc6e0d2a-4a68-403d-8f86-e08086fb3aed + - 90d56313-fa0b-4092-9c4f-5abda7fdd95d X-Runtime: - - '0.315081' + - '0.291889' Strict-Transport-Security: - max-age=31536000; includeSubDomains body: encoding: ASCII-8BIT string: !binary |- - H4sIALawPFgAA9xYTW/jNhC951cEvjOy7MRxAkXptosCPXSBdjcF2ktAiSOL - jURqScqx++s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OLLbvK8ixCQX65 + 2aY5luLiUmd5D6KSRLOHhZs26DsyOb1p3WuHFBzLUh0njGGYti0C0FCXQHs9 + kZWjoqpfyfQH/GChe0WdCMn4YdUilt5GLqAaIzBU/k/908jWPoZM9+GxRx3x + HC2xs0FCa45Hmsudw8Hc438fhKvngvCat+aPFZJB0hWOGxsl9VPJJtWZ4vUi + 1Rzphybf8mhSI7WRjCCbIza6nrb4BInHUsaLxSM/2cfOToJj0sOTGdftjffq + wFmR/RVcaNhLjzxssfOzTY0iB7W/F6BfC7d60LvxiY94AWXyWZacNRpveSdw + RF7t7dDPAZbGtd1bPhKX0pkWY5E2Sru3AAODj13dd/KJyp+g0UPCv/0UM/ud + 5JVwOFincYIp/zHsowrLFemvz2CTZZ53AqZlwXfred0Y8NVHN3oJF0hnG/cw + s3TDtd4723rjYAk0JYQjR6e8ccwJF0Ev22pZ5Eu2BqppCuwrBO+YLT7Ao+dy + GrFJB0ne/AMAAP//AwDmYFKVlhMAAA== http_version: - recorded_at: Mon, 28 Nov 2016 22:33:27 GMT + recorded_at: Tue, 10 Jan 2017 17:56:07 GMT recorded_with: VCR 3.0.3 diff --git a/spec/models/solidus_paypal_braintree/gateway_spec.rb b/spec/models/solidus_paypal_braintree/gateway_spec.rb index 25c57b99..44de66b4 100644 --- a/spec/models/solidus_paypal_braintree/gateway_spec.rb +++ b/spec/models/solidus_paypal_braintree/gateway_spec.rb @@ -108,6 +108,13 @@ context 'successful authorization', vcr: { cassette_name: 'gateway/authorize' } do include_examples "successful response" + it 'passes "Solidus" as the channel parameter in the request' do + expect_any_instance_of(Braintree::TransactionGateway). + to receive(:sale). + with(hash_including({ channel: "Solidus" })).and_call_original + authorize + end + it 'authorizes the transaction', aggregate_failures: true do expect(authorize.message).to eq 'authorized' expect(authorize.authorization).to be_present From fe71c3f70286077aebc0c72237a054a99b842590 Mon Sep 17 00:00:00 2001 From: Luuk Veenis Date: Tue, 10 Jan 2017 11:02:44 -0800 Subject: [PATCH 2/2] Increase Poltergeist timeout from 30 sec to 1 min --- spec/spec_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 00fb8155..e28194ee 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -41,7 +41,8 @@ # Paypal requires TLS v1.2 for ssl connections Capybara::Poltergeist::Driver.new(app, { phantomjs_logger: Rails.logger, - phantomjs_options: ['--ssl-protocol=tlsv1.2'] + phantomjs_options: ['--ssl-protocol=tlsv1.2'], + timeout: 1.minute }) end Capybara.register_driver :chrome do |app|