Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

first_data_gateway

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

first_data_gateway

  • 1.14.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

FirstApiClient

Payment Gateway API Specification.

  • API version: 21.5.0

Installation

Install the gem

gem install first_data_gateway

(for development, run gem install --dev first_data_gateway to install the development dependencies)

Then add the gem to your Gemfile:

gem 'first_data_gateway', '~> 1.14.0'

Install from Git

Add the following in the Gemfile:

gem 'first_data_gateway', :git => 'https://github.com/GBSEcom/Ruby.git'

Getting Started

require 'openapi_client'
require 'simple_client'

api_key = "Your API Key here"
api_secret = "Your API Secret here"

credentials = SimpleClient::MerchantCredentials.new(api_key, api_secret)

# For use in production, supply "PROD" as the optional production argument:
# gateway = SimpleClient::Gateway.create(credentials, "PROD");

gateway = SimpleClient::Gateway.create(credentials)

payload = 	"{ 
				\"amount\":{
					\"currency\":\"USD\",
					\"total\":\"12.10\"
				},
				\"paymentMethod\":{
					\"paymentCard\":{
						\"expiryDate\":{
							\"month\":\"12\",
							\"year\":\"21\"
						},
						\"number\":\"5500000000000004\"
					},
					\"type\":\"PAYMENT_CARD\"
				},
				\"transactionType\":\"SALE\"
			}"
result = gateway.primary_payment_transaction(payload: payload)
p JSON.generate(result.to_hash)

Documentation for API Endpoints

All URIs are relative to https://cert.api.firstdata.com/gateway/v2

ClassMethodHTTP requestDescription
OpenapiClient::AuthenticationApiauthentication_access_tokens_postPOST /authentication/access-tokensGenerate an access token for user authentication.
OpenapiClient::CurrencyConversionApiget_exchange_ratePOST /exchange-ratesGenerate dynamic currency conversion transactions.
OpenapiClient::FraudDetectApifraud_client_registration_postPOST /fraud/client-registrationClient registration for fraud detect transaction.
OpenapiClient::FraudDetectApifraud_payment_registration_postPOST /fraud/payment-registrationPayment registration for fraud detect transaction.
OpenapiClient::FraudDetectApiscore_onlyPOST /fraud/score-onlyScore a transaction for fraud.
OpenapiClient::InformationLookupApicard_info_lookupPOST /card-informationCard information lookup.
OpenapiClient::InformationLookupApilookup_accountPOST /account-informationAccount information lookup.
OpenapiClient::OrderApiorder_inquiryGET /orders/{order-id}Retrieve the state of an order.
OpenapiClient::OrderApisubmit_secondary_transaction_from_orderPOST /orders/{order-id}Perform return or postAuth secondary transactions.
OpenapiClient::PaymentApifinalize_secure_transactionPATCH /payments/{transaction-id}Update a 3DSecure or UnionPay payment and continue processing.
OpenapiClient::PaymentApisubmit_primary_transactionPOST /paymentsGenerate a primary transaction.
OpenapiClient::PaymentApisubmit_secondary_transactionPOST /payments/{transaction-id}Perform a secondary transaction.
OpenapiClient::PaymentApitransaction_inquiryGET /payments/{transaction-id}Retrieve the state of a transaction.
OpenapiClient::PaymentSchedulesApicancel_payment_scheduleDELETE /payment-schedules/{order-id}Cancel a gateway payment schedule.
OpenapiClient::PaymentSchedulesApicreate_payment_schedulePOST /payment-schedulesCreate gateway payment schedule.
OpenapiClient::PaymentSchedulesApiinquiry_payment_scheduleGET /payment-schedules/{order-id}View a gateway payment schedule.
OpenapiClient::PaymentSchedulesApiupdate_payment_schedulePATCH /payment-schedules/{order-id}Update a gateway payment schedule.
OpenapiClient::PaymentTokenApicreate_payment_tokenPOST /payment-tokensCreate a payment token from a payment card.
OpenapiClient::PaymentTokenApidelete_payment_tokenDELETE /payment-tokens/{token-id}Delete a payment token.
OpenapiClient::PaymentTokenApiget_payment_token_detailsGET /payment-tokens/{token-id}Get payment card details associated with token.
OpenapiClient::PaymentTokenApiupdate_payment_tokenPATCH /payment-tokensUpdate one or more payment tokens.
OpenapiClient::PaymentURLApicreate_payment_urlPOST /payment-urlCreate a payment URL.
OpenapiClient::PaymentURLApidelete_payment_urlDELETE /payment-urlDelete a payment URL.
OpenapiClient::PaymentURLApipayment_url_detailGET /payment-urlRetrieve the state of payment URL.
OpenapiClient::VerificationApiverify_accountPOST /account-verificationVerify a payment card or payment token.
OpenapiClient::VerificationApiverify_cardPOST /card-verificationVerify a payment card.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

FAQs

Package last updated on 19 Nov 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc