Skip to content

Commit

Permalink
Checkout.com (#68)
Browse files Browse the repository at this point in the history
* register checkout library

* add currency to credentials
  • Loading branch information
fobilow committed Jan 21, 2021
1 parent 03cbc1d commit a808f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions connectorconfig/checkout.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
type CheckoutCredentials struct {
PublicKey *string `json:"publicKey" yaml:"publicKey" validate:"required,gt=0"`
SecretKey *string `json:"secretKey" yaml:"secretKey" validate:"required,gt=0"`
Currency string `json:"currency" yaml:"currency" validate:"oneof=AED,AFN,ALL,AMD,ANG,AOA,ARS,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,CAD,CDF,CHF,CLF,CLP,CNY,COP,CRC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EEK,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,JPY,KES,KGS,KHR,KMF,KPW,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LTL,LVL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRO,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLL,SOS,SRD,STD,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VEF,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL"`
Environment CheckoutEnvironment `json:"environment" yaml:"environment" validate:"oneof=sandbox production"`
}

Expand Down
1 change: 1 addition & 0 deletions connectorconfig/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var LibraryRegister = map[Library]bool{
LibraryPayPalExpressCheckout: true,
LibraryVindicia: true,
LibraryBottomline: true,
LibraryCheckout: true,
LibraryChargeHive: true,
LibraryMaxMind: true,
LibraryCyberSource: true,
Expand Down

0 comments on commit a808f99

Please sign in to comment.