Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

5.0.0 5.9.4

The Payment Provider object is part of the overall ServiceBroker Configuration object, in the following location:

A Payment Provider object is used within the context of a REST Objects Providers (itself part of an REST Objects Configuration) to represent the details of how ServiceBroker is to be integrated with a payment provider for the relevant tenant.



Payment Provider Object Format - authorize.net

JSON Format
{
    "Provider": "AuthorizeNet",
    "Features": {
        "RequestPayment": {
            "HostedPaymentSettings": {
                "hostedPaymentReturnOptions": {
                    "showReceipt": false
                },
                "hostedPaymentButtonOptions": {
                    "text": "Pay"
                },
                "hostedPaymentStyleOptions": {
                    "bgColor": "#2185c7"
                },
                "hostedPaymentPaymentOptions": {
                    "cardCodeRequired": true,
                    "showCreditCard": true,
                    "showBankAccount": false
                },
                "hostedPaymentSecurityOptions": {
                    "captcha": true
                },
                "hostedPaymentShippingAddressOptions": {
                    "show": true,
                    "required": false
                },
                "hostedPaymentBillingAddressOptions": {
                    "show": false,
                    "required": false
                },
                "hostedPaymentCustomerOptions": {
                    "showEmail": true,
                    "requiredEmail": false,
                    "addPaymentProfile": false
                },
                "hostedPaymentOrderOptions": {
                    "show": false
                },
                "hostedPaymentIFrameCommunicatorUrl": {
                    "url": ""
                }
            }
        },
        "ConfirmPayment": {
        }
    },
	"SecretKey": "",
	"MerchantAuthentication": {
    	"Name": "",
        "TransactionKey": ""
    },
    "BaseUrl": ""
}

Payment Provider Object Properties - authorize.net

PropertyTypeRequired?Description
Provider   stringYes

The payment provider to use.

For authorize.net, the value is: AuthorizeNet.

Features

objectYes

An object to be passed to the payment provider when requesting payments.


RequestPayment

objectYesObject defining the endpoint and parameters to be passed to authorize.net when initializing payments.


HostedPaymentSettings

objectYes



hostedPaymentReturnOptions

objectYes




showReceipt

booleanYes



hostedPaymentButtonOptions

objectYes




text

stringYes



hostedPaymentStyleOptions

objectYes




bgColor

stringYes



hostedPaymentPaymentOptions

objectYes




cardCodeRequired

booleanYes




showCreditCard

booleanYes




showBankAccount

booleanYes



hostedPaymentSecurityOptions

objectYes




captcha

booleanYes



hostedPaymentShippingAddressOptions

objectYes




show

booleanYes




required

booleanYes



hostedPaymentBillingAddressOptions

objectYes




show

booleanYes




required

booleanYes



hostedPaymentCustomerOptions

objectYes




showEmail

booleanYes




requiredEmail

booleanYes




addPaymentProfile

booleanYes



hostedPaymentOrderOptions

objectYes




show

booleanYes



hostedPaymentIFrameCommunicatorUrl

objectYes




url

stringYes

ConfirmPayment

objectYesEmpty object.

SecretKey

stringYes

MerchantAuthentication

objectYes

Name

stringYes

TransactionKey

stringYes
BaseUrlstringYes

The base URL of the payment provider.

Currently, only https://www.chasepaymentechhostedpay-var.com is supported.

Payment Provider Object Format - Chase Payment

JSON Format
{
    "Provider": "ChasePayment",
    "Features": {
        "RequestPayment": {
            "InitParams": {
                "hostedSecureID": "{HostedSecureId}",
                "hostedSecureAPIToken": "{HostedSecureApiToken}",
                "css_url": "{CssUrl}",
                "action": "{Action}",
                "payment_type": "{PaymentType}",
                "formType": "{FormType}",
                "allowed_types": "{AllowedTypes}",
                "trans_type": "{TransType}",
                "currency_code": "{CurrencyCode}",
                "required": "{Required}",
                "hosted_tokenize": "{HostedTokenize}"
            },
            "RenderParams": {
                "hostedSecureID": "{HostedSecureId}"
            }
        },
        "ConfirmPayment": {
            "QueryParams": {
                "hostedSecureID": "{HostedSecureId}",
                "hostedSecureAPIToken": "{HostedSecureApiToken}"
            }
        }
    },
    "Headers": {},
    "Props": {
        "HostedSecureId": "",
        "HostedSecureApiToken": "",
        "CssUrl": "",
        "Action": "",
        "PaymentType": "",
        "FormType": "",
        "AllowedTypes": "",
        "TransType": "",
        "CurrencyCode": "",
        "Required": "",
        "HostedTokenize": ""
    }
}

Payment Provider Object Properties - Chase Payment


PropertyTypeRequired?Description
Provider   stringYes

The payment provider to use.

For Chase Payment, the value is: ChasePayment.

Features

objectYes

An object to be passed to the payment provider when requesting payments.

The object contains placeholder variables, defined as {variables} which will be replaced by the corresponding values from the Props object below.


RequestPayment

objectYesObject defining the endpoint and parameters to be passed to Chase when initializing payments.


InitParams

objectYesChase-defined parameters to be passed when initializing payments.



hostedSecureID

stringYes

Variable: {HostedSecureId}  

When sent to Chase, will be replaced by the value of the Props > HostedSecureId value.




hostedSecureAPIToken

stringYes

Variable: {HostedSecureApiToken}  

When sent to Chase, will be replaced by the value of the Props > HostedSecureApiToken value.




css_url

stringYes

Variable: {CssUrl}  

When sent to Chase, will be replaced by the value of the Props > CssUrl value.




action

stringYes

Variable: {Action}  

When sent to Chase, will be replaced by the value of the Props > Action value.




payment_type

stringYes

Variable: {PaymentType}  

When sent to Chase, will be replaced by the value of the Props > PaymentType value.




formType

stringYes

Variable: {FormType}  

When sent to Chase, will be replaced by the value of the Props > FormType value.




allowed_types

stringYes

Variable: {AllowedTypes}  

When sent to Chase, will be replaced by the value of the Props > AllowedTypes value.




trans_type

stringYes

Variable: {TransType}  

When sent to Chase, will be replaced by the value of the Props > TransType value.




currency_code

stringYes

Variable: {CurrencyCode}  

When sent to Chase, will be replaced by the value of the Props > CurrencyCode value.




required

stringYes

Variable: {Required}  

When sent to Chase, will be replaced by the value of the Props > Required value.




hosted_tokenize

stringYes

Variable: {HostedTokenize}  

When sent to Chase, will be replaced by the value of the Props > HostedTokenize value.



RenderParams


YesChase-defined parameters to be passed when rendering the payment system screen.



hostedSecureID

stringYes

Variable: {HostedSecureId}  

When sent to Chase, will be replaced by the value of the Props > HostedSecureId value.


ConfirmPayment


YesObject defining the endpoint and parameters to be passed to Chase when querying payments.


QueryParams


YesChase-defined parameters to be passed when querying payments.



hostedSecureID

stringYes

Variable: {HostedSecureId}  

When sent to Chase, will be replaced by the value of the Props > HostedSecureId value.




hostedSecureAPIToken

stringYes

Variable: {HostedSecureApiToken}  

When sent to Chase, will be replaced by the value of the Props > HostedSecureApiToken value.

HeadersobjectNo
PropsobjectYesAn array of tenant-specific values which should be used to replace the {variables} defined in the specific payment provider's defined Features object when being sent to the provider.

HostedSecureIdstringYesThe tenant's specific Chase hosted secure ID value.

HostedSecureApiTokenstringYesThe tenant's specific Chase secure API token value.

CssUrlstringYesURL to an externally hosted, publicly accessible CSS file as required by Chase for format the payment system screen when rendered.

ActionstringYesFor Chase, the literal string: buildForm

PaymentTypestringYesFor Chase, the literal string: Credit_Card

FormTypestringYesFor Chase, the literal string: 4

AllowedTypesstringYes

TransTypestringYesFor Chase, the literal string: auth_capture

CurrencyCodestringYesThe current for payments, as supported by Chase (e.g. USD).

RequiredstringYesFor Chase, the literal string: all

HostedTokenizestringYesFor Chase, the literal string: store_authorize
  • No labels