Sha256: 2c020c731de97a13db5a01b13baaf9f56df684b7089d044fde1a1177d127c953
Contents?: true
Size: 1.09 KB
Versions: 6
Compression:
Stored size: 1.09 KB
Contents
require "spec_helper" RSpec.describe Adyen::Payments, service: "payments service" do # client instance to be used in dynamically generated tests client = create_client(:basic) # methods / values to test for # format is defined in spec_helper test_sets = [ ["authorise", "resultCode", "Authorised"], ["adjust_authorisation", "response", "[adjustAuthorisation-received]"], ["authorise3d", "resultCode", "Authorised"], ["authorise3ds2", "resultCode", "ChallengeShopper"], ["cancel", "response", "[cancel-received]"], ["cancel_or_refund", "response", "[cancelOrRefund-received]"], ["capture", "response", "[capture-received]"], ["refund", "response", "[refund-received]"], ["donate", "response", "[donation-received]"], ["get_authentication_result", "threeDS2Result", {"transStatus" => "Y"}], ["retrieve_3ds2_result", "threeDS2Result", {"transStatus" => "Y"}], ["technical_cancel", "originalReference", "9914694372990637"], ["void_pending_refund", "pspReference", "9914694372990637"] ] generate_tests(client, "Payment", test_sets, client.payments) end
Version data entries
6 entries across 6 versions & 1 rubygems