2.88.0 • Published 12 months ago

paycomet_rest_api v2.88.0

Weekly downloads
-
License
Unlicense
Repository
-
Last release
12 months ago

paycomet_rest_api

PaycometRestApi - JavaScript client for paycomet_rest_api PAYCOMET API REST for customers. This SDK is automatically generated by the Swagger Codegen project:

  • API version: 2.88.0
  • Package version: 2.88.0
  • Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen For more information, please visit https://www.paycomet.com

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install paycomet_rest_api --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var PaycometRestApi = require('paycomet_rest_api');

var api = new PaycometRestApi.BalanceApi()
var opts = { 
  'body': new PaycometRestApi.V1BalanceBody(), // {V1BalanceBody} 
  'PAYCOMET_API_TOKEN': "PAYCOMET_API_TOKEN_example" // {String} PAYCOMET API key (Query privilege required)
};
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.productBalance(opts, callback);

Documentation for API Endpoints

All URIs are relative to https://rest.paycomet.com

ClassMethodHTTP requestDescription
PaycometRestApi.BalanceApiproductBalancePOST /v1/balanceGet balance info
PaycometRestApi.CardsApiaddUserPOST /v1/cardsTokenizes a card. Either card number and CVC2 or jetToken are required. For you to send directly the card data you should be PCI certified or the accepting the requirement to submit quarterly SAQ-AEP and get ASV scans. For most users is strongly recommended getting the jetToken with JETIFRAME or using GET integration to register the cards instead of REST.
PaycometRestApi.CardsApieditUserPOST /v1/cards/editChanges the expiry date, cvc2 or both
PaycometRestApi.CardsApiinfoUserPOST /v1/cards/infoGet card info
PaycometRestApi.CardsApiphysicalAddCardPOST /v1/cards/physicalTokenize a card by physical encrypted data
PaycometRestApi.CardsApiphysicalEditCardPOST /v1/cards/physical/editEdit a card entered by physical encrypted data
PaycometRestApi.CardsApiremoveUserPOST /v1/cards/deleteRemoves a card
PaycometRestApi.DccApidccPurchaseConfirmPOST /v1/payments/{order}/dcc/confirmConfirm previous DCC payment
PaycometRestApi.DccApidccPurchaseCreatePOST /v1/payments/dccCreate an DCC payment
PaycometRestApi.ErrorApiinfoErrorPOST /v1/errorsGets an error description
PaycometRestApi.ExchangeApiexchangePOST /v1/exchangeConverts a certain amount from a currency to another.
PaycometRestApi.FormApiformPOST /v1/formCreate form view for user capture
PaycometRestApi.HeartbeatApiheartbeatPOST /v1/heartbeatCheck the system
PaycometRestApi.IVRApicheckSessionPOST /v1/ivr/session-stateChecks an IVR session
PaycometRestApi.IVRApigetSessionPOST /v1/ivr/get-sessionCreates an IVR session
PaycometRestApi.IVRApisessionCancelPOST /v1/ivr/session-cancelCancel an IVR session
PaycometRestApi.IpApigetCountrybyIPPOST /v1/ipRetrieves country info by IP
PaycometRestApi.IpApigetRemoteAddressPOST /v1/ip/remoteRetrieves request remote address IP
PaycometRestApi.LaunchpadApilaunchAuthorizationPOST /v1/launchpad/authorizationCreates a payment link and sends it to customer
PaycometRestApi.LaunchpadApilaunchPreauthorizationPOST /v1/launchpad/preauthorizationExecutes a preauthorization link and sends it to customer
PaycometRestApi.LaunchpadApilaunchSubscriptionPOST /v1/launchpad/subscriptionCreates a subscription link and sends it to customer
PaycometRestApi.MarketplaceApisplitTransferPOST /v1/marketplace/split-transferMake a transfer to other accounts on PAYCOMET
PaycometRestApi.MarketplaceApisplitTransferReversalPOST /v1/marketplace/split-transfer-reversalRun a split transfer reversal based on a previous split transfer
PaycometRestApi.MarketplaceApitransferPOST /v1/marketplace/transferRun a transfer
PaycometRestApi.MarketplaceApitransferReversalPOST /v1/marketplace/transfer-reversalMake a transfer reversal based on a previous transfer
PaycometRestApi.MethodsApigetUserPaymentMethodsPOST /v1/methodsRetrieves product methods
PaycometRestApi.MiraklApimiraklInvoicesSearchPOST /v1/invoicesSearch Mirakl invoices
PaycometRestApi.PaymentsApiexecutePurchasePOST /v1/paymentsExecutes a payment
PaycometRestApi.PaymentsApiexecutePurchaseRtokenPOST /v1/payments/rtokenExecutes a payment by refence
PaycometRestApi.PaymentsApioperationInfoPOST /v1/payments/{order}/infoGet info of a order
PaycometRestApi.PaymentsApioperationSearchPOST /v1/payments/searchSearch orders
PaycometRestApi.PreauthorizationsApicancelPreauthorizationPOST /v1/payments/{order}/preauth/cancelCancel previous preauthorization
PaycometRestApi.PreauthorizationsApiconfirmPreauthorizationPOST /v1/payments/{order}/preauth/confirmConfirm previous preauthorization
PaycometRestApi.PreauthorizationsApicreatePreauthorizationPOST /v1/payments/preauthCreate preauthorization
PaycometRestApi.PreauthorizationsApicreatePreauthorizationRtokenPOST /v1/payments/preauthrtokenCreates a preauthorization by reference
PaycometRestApi.RefundApiexecuteRefundPOST /v1/payments/{order}/refundPerform a refund
PaycometRestApi.SepaApiaddDocumentPOST /v1/sepa/add-documentAdds a SEPA document
PaycometRestApi.SepaApicancelPOST /v1/sepa/cancelCancel a SEPA order
PaycometRestApi.SepaApicheckCustomerPOST /v1/sepa/check-customerCheck a customers SEPA documentation
PaycometRestApi.SepaApicheckDocumentPOST /v1/sepa/check-documentCheck a SEPA document
PaycometRestApi.SepaApienroleCustomerPOST /v1/sepa/enrole-customerGenerate a link to make a account check to a customer
PaycometRestApi.SepaApisepaOperationsPOST /v1/sepa/operationsSend SEPA operations
PaycometRestApi.SusbcriptionsApicreateSubscriptionPOST /v1/subscriptionCreate susbcription payment
PaycometRestApi.SusbcriptionsApieditSubscriptionPOST /v1/subscription/{order}/editEdit susbcription payment.
PaycometRestApi.SusbcriptionsApiinfoSubscriptionPOST /v1/subscription/{order}/infoGets susbcription info. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions.
PaycometRestApi.SusbcriptionsApiremoveSubscriptionPOST /v1/subscription/{order}/removeRemove susbcription payment. If the susbscription is not a card subscription only the idUser is need. TokenUser is just for card subscriptions.
PaycometRestApi.TokenApiaddTokenPOST /v1/tokenTokenizes an APM.

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

2.88.0

12 months ago