/
REST Objects Payment Provider

REST Objects Payment Provider

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 name of the payment provider, which is AuthorizeNet in this case.

Features

objectYes

An object that contains the payment features supported by the provider. In this case, the provider supports RequestPayment and ConfirmPayment features.


RequestPayment

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


HostedPaymentSettings

objectYes

An object that contains the settings for the hosted payment form.




hostedPaymentReturnOptions

objectYes

An object that specifies whether to show a receipt after the payment is completed.





showReceipt

booleanYesThis confirms that a recipt is needed.



hostedPaymentButtonOptions

objectYesAn object that specifies the text to display on the payment button.




text

stringYesThe text saved for display



hostedPaymentStyleOptions

objectYesAn object that specifies the background color of the payment form.




bgColor

stringYesThe color used.



hostedPaymentPaymentOptions

objectYesAn object that specifies whether to show the credit card and bank account fields, and whether to require the card code.




cardCodeRequired

booleanYesSaves if the credit code required.




showCreditCard

booleanYesSaves if the credit card should be shown.




showBankAccount

booleanYesSaves if the bank account should be shown.



hostedPaymentSecurityOptions

objectYesAn object that specifies whether to use a CAPTCHA to prevent fraud.




captcha

booleanYesShows that the use successfull used captcha.



hostedPaymentShippingAddressOptions

objectYesAn object that specifies whether to show the shipping address fields, and whether they are required.




show

booleanYesMarks if the shipping address fields should be shown.




required

booleanYesMarks if the shipping address fields are required.



hostedPaymentBillingAddressOptions

objectYesAn object that specifies whether to show the billing address fields, and whether they are required.




show

booleanYesMarks if the billing address fields should be shown.




required

booleanYesMarks if the billing address fields are required.



hostedPaymentCustomerOptions

objectYesAn object that specifies whether to show the customer email field, and whether it is required..




showEmail

booleanYesSaves information about if the email should be shown.




requiredEmail

booleanYesSaves information about the email.



hostedPaymentOrderOptions

objectYesAn object that specifies whether to show the order summary..




show

booleanYesShows that above is required or not/



hostedPaymentIFrameCommunicatorUrl

objectYesAn object that specifies the URL of the iframe communicator used to communicate between the payment form and the application.




url

stringYesThe saved URL

ConfirmPayment

objectYesEmpty object.

SecretKey

stringYesA secret key used to authenticate requests to the Authorize.Net API.  

MerchantAuthentication

objectYesAn object that contains the merchant's authentication information, including the merchant name and transaction key.

Name

stringYesThe name of the merchant.

TransactionKey

stringYesThe transaction key assigned to the merchant.
BaseUrlstringYes

The base URL of the payment provider.

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

Payment Provider Object Format - Chase Payment

Unable to render {include} The included page could not be found.

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