![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/tarlanpayments/gw-go-client
This package provide ability to make requests to Tarlan Payments Gateway API v3.
This README
provide introduction to the library usage.
Transactions
Information
Verifications
Tokenization
// Setup your credentials for authorized requests
AccGUID := "someAccountGUID" // Your account GUID from Tarlan Payments
SecKey := "someSecretKey" // Your API secret key
// Setup new Gateway Client
gateCli, gateCliErr := tarlanpaymentsgateway.NewGatewayClient(AccGUID, SecKey)
if gateCliErr != nil {
log.Fatal(gateCliErr)
}
gateCli.API.BaseURI = "https://<Gateway URL>"
// Prepare operation builder to handle your operations
specOpsBuilder := gateCli.OperationBuilder()
// Now, define your special operation for processing
sms := specOpsBuilder.NewSms()
// Set transaction data
sms.GeneralData.OrderData.OrderDescription = "Operation Single-Message Transactions"
sms.GeneralData.CustomerData.Email = "some@email.com"
sms.PaymentMethod.Pan = "1111111111111111"
sms.PaymentMethod.ExpMmYy = "10/60"
sms.PaymentMethod.Cvv = "123"
sms.Money.Amount = 1500
sms.Money.Currency = "USD"
sms.System.UserIP = "199.99.99.1"
sms.System.XForwardedFor = "199.99.99.1"
// Now process the operation
opResp, opErr := gateCli.NewRequest(sms)
if opErr != nil {
log.Printf(opErr)
}
// set card verification init mode for a payment
payment.CommandData.CardVerificationMode = structures.CardVerificationModeInit
// complete card verification
request := specOpsBuilder.NewVerifyCard()
request.VerifyCardData.GWTransactionID = initialPaymentGatewayId
gateCli.NewRequest(request)
// set card verification verify mode for subsequent payments
newPayment.CommandData.CardVerificationMode = structures.CardVerificationModeVerify
// option 1: create a payment with flag to save payment data
payment.CommandData.PaymentMethodDataSource = structures.DataSourceSaveToGateway
// option 2: send "create token" request with payment data
operation = specOpsBuilder.NewCreateToken();
operation.PaymentMethod.Pan = "1111111111111111"
operation.PaymentMethod.ExpMmYy = "10/60"
operation.PaymentMethod.CardholderName = "John Doe"
operation.Money.Currency = "EUR"
gateCli.NewRequest(operation)
// send a payment with flag to load payment data by token
newPayment.CommandData.PaymentMethodDataSource = structures.DataSourceUseGatewaySavedCardholderInitiated
newPayment.CommandData.PaymentMethodDataToken = "<initial gateway-transaction-id>"
Bugs and feature request are tracked on GitHub
$: go test ./...
This library is licensed under the MIT License - see the LICENSE
file for details.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.