Skip to content

awxsam/adyen-footsites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

adyen-footsites


Adyen Encryption for footsites, only v25 - you can add other versions yourself :)


Example:

package main

import (
	y "github.com/awxsam/adyen-footsites"
	"fmt"
)
func main() {
	adyenKey := "A237060180D24CDEF3E4E27D828BDB6A13E12C6959820770D7F2C1671DD0AEF4729670C20C6C5967C664D18955058B69549FBE8BF3609EF64832D7C033008A818700A9B0458641C5824F5FCBB9FF83D5A83EBDF079E73B81ACA9CA52FDBCAD7CD9D6A337A4511759FA21E34CD166B9BABD512DB7B2293C0FE48B97CAB3DE8F6F1A8E49C08D23A98E986B8A995A8F382220F06338622631435736FA064AEAC5BD223BAF42AF2B66F1FEA34EF3C297F09C10B364B994EA287A5602ACF153D0B4B09A604B987397684D19DBC5E6FE7E4FFE72390D28D6E21CA3391FA3CAADAD80A729FEF4823F6BE9711D4D51BF4DFCB6A3607686B34ACCE18329D415350FD0654D"
	y := y.NewAdyen(adyenKey)
	encryptedCCNumber,encryptedExpMonth, encryptedExpYear, encryptedCvc, err := y.EncryptCreditcardDetails("CCNUMBER", "EXPMONTH", "EXPYEAR", "CVC")
	if err != nil {
		panic(err)
	}
	fmt.Println(encryptedCCNumber)
	fmt.Println(encryptedExpMonth)
	fmt.Println(encryptedExpYear)
	fmt.Println(encryptedCvc)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages