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
Igor Zhutaiev edited this page Apr 28, 2018
·
4 revisions
This code shows how to configure basic Adyen instance
import"github.com/zhutik/adyen-api-go"instance:=adyen.New(
adyen.Testing, // supports adyen.Testing or adyen.Production"ADYEN_USERNAME", // API account username"ADYEN_PASSWORD", // API account password
)
By default, library uses EUR as a default currency, to change that use WithCurrency method when initializing adyen object
instance:=adyen.New(
adyen.Testing, // supports adyen.Testing or adyen.Production"ADYEN_USERNAME", // API account username"ADYEN_PASSWORD", // API account passwordWithCurrency("CHF"),
)
// ORinstance.Currency="CHF"// to get currency for currrent instanceinstance.Currency
MerchantAccount could be also stored for further usage
instance.MerchantAccount="TEST_MERCHANT_ACCOUNT"// and retrieved afterwardinstance.MerchantAccount