HGOP2
The HGOP2 (Half GUI Order Processing version 2) service allows clients to host their cart and then post the information in their cart to Digital River at checkout time. A successful HGOP2 call consumes the information, creates a cart on the Digital River side, and then redirects the user to the cart on the Digital River side.
CreateCartRequest
Contains the client's cart information. Use this information to populate the cart on the Digital River-side.
Digital River can provide interfaces to post PGP messages for testing purposes.
See PGP coding examples for more information.
Using HGOP2 with PGP encryption
You can use PGP encryption with the HGOP2 service to encrypt the contents of the cart.
To integrate HGOP2 with PGP encryption:
Get the following items from your Digital River representative:
A PGP key
The endpoint information to post the PGP encrypted information
Generate an XML request that conforms to one of the HGOP2 schemas.
Encrypt the message above as a PGP armored (ASCII-based) message using the key provided in step 1.
Expose a simple HTML form to the end-user that contains a single hidden HTML
message
parameter. Use the encrypted results obtained in step 3 as the value for themessage
parameter. When the user clicks submit, iXMt triggers an HTTP POST call with the encrypted key to the endpoint.
Using HGOP2 with store credit
Create a store credit source
When you create a store credit source using POST /sources
, the sources array will contain a source with a type
of customerCredit
.
type
String
Required
The payment type In this instance, the required value is customerCredit
.
amount
String
Required
The amount of the source
customerCredit
Required
The customerCredit
instrument should be empty.
Add the store credit source to the cart
Accept the store credit source in the HGOP2 request body and create the payment information with the source.
HGOP2 schemas
Last updated