You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: adyen-ruby-api-client.gemspec
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
require_relative"lib/adyen/version"
2
2
3
3
Gem::Specification.newdo |spec|
4
-
spec.name="adyen"
4
+
spec.name="adyen-ruby-api-client"
5
5
spec.version=Adyen::VERSION
6
6
spec.authors=["Adyen"]
7
7
spec.email=[""]
8
8
9
9
spec.summary="API Library for Adyen APIs"
10
-
spec.description="Simplify Adyen API Integration"
10
+
spec.description="A ruby library from Adyen that simplifies integrating with the API, including Checkout, Marketpay, payments, recurring, and payouts. For support please reach out to [email protected]. If you'd like to contribute please submit a comment or pull request at https://github.com/Adyen/adyen-ruby-api-library."
# make sure that env can only be :live, :test, or :mock
24
25
defenv=(value)
25
26
raiseArgumentError,"Invalid value for Client.env: '#{value}'' - must be one of [:live, :test, :mock]"unless[:live,:test,:mock].include?value
26
27
@env=value
@@ -33,10 +34,15 @@ def service_url_base(service)
33
34
else
34
35
caseservice
35
36
when"Checkout"
36
-
"https://checkout-#{@env}.adyen.com"
37
+
if@env == :test
38
+
"https://checkout-test.adyen.com"
39
+
else
40
+
raiseArgumentError,"Please set Client.checkout_url_prefix to the portion of your merchant-specific URL prior to '-checkout-live'"if@checkout_url_prefix.nil?
0 commit comments