Skip to content

Commit d00a1e4

Browse files
false[adyen-sdk-automation] automated change
1 parent 41c7dd9 commit d00a1e4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/adyen/services/checkout/utility_api.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,15 @@ def updates_order_for_paypal_express_checkout(request, headers: {})
4444
@client.call_adyen_api(@service, action, request, headers, @version)
4545
end
4646

47+
# Validates shopper Id
48+
def validate_shopper_id(request, validate_shopper_id_request, headers: {})
49+
endpoint = '/validateShopperId'.gsub(/{.+?}/, '%s')
50+
endpoint = endpoint.gsub(%r{^/}, '')
51+
endpoint = format(endpoint)
52+
53+
action = { method: 'post', url: endpoint }
54+
@client.call_adyen_api(@service, action, request, headers, @version)
55+
end
56+
4757
end
4858
end

0 commit comments

Comments
 (0)