Installment Payment Plan Options Inquiry

👍

HTTPS POST / Server-to-Server

Payment requests and responses are encrypted using JWE

  • JWE algorithm = RSA-OAEP + A256GCM
  • The signature uses JWS PS256

Merchants must know how to prepare requests and process responses using JWE + JWS with exchange key.

https://demo2.2c2p.com/2C2PFrontend/PaymentAction/2.0/action
https://t.2c2p.com/PaymentAction/2.0/action

 

IPP Options Inquiry Request


To prepare an IPP options inquiry request, refer to the guidelines below.

📘

Provided Sample Code

The following sample code demonstrates how to prepare request data, generate the JWT token with key, and send the API request.

For the JWT token, you may also refer to the sample code here.

  1. To prepare the data payload for the IPP options inquiry request, refer to the sample structure shown below. You may also check the API specifications here: IPP Options Inquiry Request Parameters

2.To generate encrypted request data, refer to this guide: Generate JWT Request with Keys

<IppOptionRequest>
   <version>2.2</version>
   <timeStamp>131221155503</timeStamp>
   <merchantID>JT01</merchantID>
</IppOptionRequest>
eyJhbGciOiJQUzI1NiIsImtpZCI6ImRlZmF1bHQifQ.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5oLU9reG9EanZ6Z0pSdkI3LVNVMFh6VGNRVmFESUgwaFhpc0h2R3dicTRkVnlsNWZoVzhOalJjSmZVOUJ6ZzFIQTh4MXNXX3NVOGhxVVlkRmxQdUxlQ21xYnYxeklVeDdkYjhCTG42R0FESVFySGtmcmpCandXNG0xanBsS1JaeTJWUUc3cjhubzF6TkFUcFd2U3JsbWNpWmg0X3gxOUlaQk8wbS1kcGU2TW14WHZXTHNKX2Y5Ukp1OVQxdGxXTG9HUjI5T2dmcjZreUtLOTdvTkFFX3JtTk5KbEZLTDBGVVFUZkp6XzBkbVpzT3YwTWZnWWtHenBGek1iTk9tbl9CdVIzeF9ZamVJQWZjc3oxaWdvODdwTTlJbHZHQlJTMVpMb3pHWnJZYW1aX0t0b1NWbHo3b2RaOFdLc2puc3NYTkZMMERIMmFjZW5URFY5OHBrcEFsdlEuR05SNmJBV0hpZ2pvNHk2TC5xQXhKai11WWZoYUFTR0hyZG5RaUlpaUtFcnVLZ19Qd2ZnQ1R4cW1XdC1qTFNsVmpfa1cxRjMycDdmNDN2LUloVkdOZXFCUnlKZUM0UWRYMkpoSldSSnU0c0VqdFRCdkFHUTRlV0NSNzVTU3Zkb25LSl9TRmFzNlIwNnJ3Vng3YVlRdTg5cVRMcVcyZEU2b3pOZ3BMcE5sajVpZG9tV0ozbVI4OUk5WGNEczB6VG1FQXpaZmJPaEtZd0h1NkI5SkxlVGtvNlNuQ01HcS1LakpqRGFxMjNrLWZiUjIzMU9aNmVTMURERWJhc0o2RGhqVlhFb3Zxbmt3eC5KUll6U1RyTzFLcVhiUElHWjBqYXdn.oMboqG622ilhirpSYa1si1MxJHWYe3oOSI9ES4MeILtCkZTSZ8N-2Tch2BnE0OmDc33h8-rSdg1td-JLTtn_fcdCMjQ5-j5uzELSbXLYLKfPKqqEbSqQErvC08ZNr97uWgFdvQYbLuO9-y1VMdwtzw5piKOFNgVYZa48Lmb0YtePH9XBBHf6p7xWVdmVH8OTxvHb44-sK-i9UZ9Jtk-yTn8IpCVjoSon2WpoIbywPIbj6zX4oGbJOuQZrlpSYO9cUfmS5suNv3M05xu7H_7Sq_0Sd_KkeT8k4PFGJQ4Hr_ZDynWA8SucoxwSR8EIXfuvSG-sVwIQZ4jcarOPMXy9BQ
  1. To send the encrypted request via API, refer to the sample request below.
curl --location --request POST 'https://demo2.2c2p.com/2C2PFrontend/PaymentAction/2.0/action' \
--header 'Content-Type: text/plain' \
--data-raw 'eyJhbGciOiJQUzI1NiIsImtpZCI6ImRlZmF1bHQifQ.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlmUS5oLU9reG9EanZ6Z0pSdkI3LVNVMFh6VGNRVmFESUgwaFhpc0h2R3dicTRkVnlsNWZoVzhOalJjSmZVOUJ6ZzFIQTh4MXNXX3NVOGhxVVlkRmxQdUxlQ21xYnYxeklVeDdkYjhCT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

IPP Options Inquiry Response


To receive and process IPP options inquiry request responses, refer to the sample code below.

📘

Provided Sample Code

The following sample code demonstrates how to receive response data and decrypt the JWT token with key.

For decrypting the JWT token, you may also refer to the sample code here.

  1. Following an IPP options inquiry request, the API will return encrypted response data. Refer to the sample encrypted response below.

  2. To decrypt the response, refer to: Process JWT Request with Keys

  3. Refer to the sample response structure below. You may also check the API specifications here: Response Parameters

eyJhbGciOiJQUzI1NiIsImtpZCI6IjIifQ.ZXlKaGJHY2lPaUpTVTBFdFQwRkZVQ0lzSW1WdVl5STZJa0V5TlRaSFEwMGlMQ0pyYVdRaU9pSWlmUS5idEc2VXNZQW41cFZPVjZrR3dYbnRSb09vdUEtZzhBZzhvSlV5TWM3bnNvbldJbEdPTlR0X2pqNndLTmItQUQ1MEZOdkJ5REthUTU4OUpQMWh0WjI0UEo1SWlzZU1jX1E2b1ZZNzBabGxreFhrREhBOUhuNUcxeXo1d1FMU0tqNVU1RGJRRVZDTV9HOExBeTNRV0VLMFVoYlZjdEJXdXBUZmVLOHVOVW5RTjVoTUtKeUZicW8ya0dYR09UOENfUjExUURkMno3VFR0bXhhaERrcVJodWdBcmFZNGxxZ3VCRFlzc05BZjBEbUREVUkxckNWX3hlbFBOYWpLUnFLOGRqUnh4a3dDSmY0MTNUVl9TOGM0UkJELTZfWGFzT2JTZU9jUTVYUW1tWnB3a3VBUkhHYmViYk15d0ROOGxCakZBRkxocm9HRlktVDl2MUNLNDQzYWVLdXcuMlNCNE5sMTB2SmhENDZpaC42T1RQUTkxczljWUpaTkZuVzJ4emZFQXNrWTNWT19MN2o3SXA0VVRKMFZ1VzY5RVZEb3dJWHEwbV84cXIzWmpkVVl0cmtJal9xZ0swWEZaN2o0LXMwRld5VVhXcTZQeTVaTEZENGhhWTZSQnBkdnZKemlwTkxndC1FMDVRZ2l4azBGUHBMTGlfbTlwVzItR1hLY0ZVRWlNODVST3V2MmJMN0lwMkktd09MUVJaQUxxV1ljUDdZS1NocmM4dm5Zb2d0YzU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5REtQazBtUkxEY0dPdXlBNmRnZDlzM0p4QWZ2ZjdNS3U1VGZIZU14eTlmYUROM2d5SE5XT0JYZlZSYUlwdk5Wa2hMWkJEYm9SbGcydV9xYTlzVmVZSUtNYU1idUI1aXVjMnQ1NWU3VzdLX3NldHdqUE43N3U4V1gtTVI5V0x3b1EuakZUVjd6TGRPZ3MzQlJoSERZbmMwUQ.fkGoEqTEhXqn2alXcx0X-fPD7LEC7T1oo4S6i2YEfBcd-AB-EUqWT0xZj_6CQ5gWgAy085peizISvtQkFIrxSSspXTRckNf6pQymhNgDOBsh0-Msjfmca_-aPSJRtOkmnRWAF__ZTKlU2X20KUd52dCFAcl7BeL7MHOPMH1_EnrUo4mP47rtlPzaBlhcO2zcoq90DtDDOf424FwioeQxm53awGPI_3xDX5OtUtAw4Xf_ftJGJC4lSPVhPcpiHRZnWq1sCcyL8RqHKCxC8UdjfItk11bKSPc__YzMcbMFxIlKb7-Jyf4lGmsCjxyK4SwFnkqQgt-p0IidOAZ7kitLrg
<IppOptionResponse>
   <version>2.2</version>
   <timeStamp>131221155503</timeStamp>
   <respCode>00</respCode>
   <hashValue>F0DCB72B560001A297E49DFB02A0D6E17A68EE3A</hashValue>
   <respReason>Success</respReason>
   <ippBanks>
      <ippBank>
         <bankName>HSBC</bankName>
         <bankShortName>HSBC</bankShortName>
         <bankLogoUrl>https://d11fwxgc8zkidi.cloudfront.net/images/ippbanklogo/27.png</bankLogoUrl>
         <bankPromoUrl>https://d11fwxgc8zkidi.cloudfront.net/images/ipppromologo/27.png</bankPromoUrl>
         <bankTerms>&amp;lt;a href=&amp;quot;https://www.hsbc.com.sg/1/2//personal/cards/card-instalment-plan-tnc&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;HSBC IPP Terms and Condition &amp;lt;/a&amp;gt;</bankTerms>
         <bins>
            <bin>424625</bin>
            <bin>448521</bin>
            <bin>534986</bin>
            <bin>538185</bin>
         </bins>
         <installmentOptions>
            <option id="1" installmentPeriod="6" merInterestRate="1.0000" cusInterestRate="1.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
            <option id="2" installmentPeriod="3" merInterestRate="1.0000" cusInterestRate="1.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
            <option id="3" installmentPeriod="9" merInterestRate="1.0000" cusInterestRate="1.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
            <option id="4" installmentPeriod="12" merInterestRate="1.0000" cusInterestRate="1.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
         </installmentOptions>
      </ippBank>
      <ippBank>
         <bankName>Pay Small by American Express</bankName>
         <bankShortName>AMEXSG</bankShortName>
         <bankLogoUrl>https://d11fwxgc8zkidi.cloudfront.net/images/ippbanklogo/40.png</bankLogoUrl>
         <bankPromoUrl />
         <bankTerms>&amp;lt;a href=&amp;quot;https://www.americanexpress.com/sg/benefits/service-security/ways-to-pay/paysmall/&amp;quot;&amp;gt;Pay Small by American Express &amp;lt;/a&amp;gt;</bankTerms>
         <bins>
            <bin>374340</bin>
            <bin>376215</bin>
            <bin>376222</bin>
            <bin>376317</bin>
            <bin>376358</bin>
            <bin>378282</bin>
         </bins>
         <installmentOptions>
            <option id="1" installmentPeriod="12" merInterestRate="1.0000" cusInterestRate="2.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
            <option id="2" installmentPeriod="6" merInterestRate="-1.0000" cusInterestRate="2.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
            <option id="3" installmentPeriod="9" merInterestRate="1.0000" cusInterestRate="2.0000" minAmount="1.00" currencyCode="SGD" validFrom="2018-02-06" validUntil="2023-02-01" />
         </installmentOptions>
      </ippBank>
   </ippBanks>
</IppOptionResponse>