Dynamic Pricing
"Dynamic Pricing" is a strategy where businesses adjust pricing in real-time based on factors like supply, demand, competitor prices, or other market conditions. This allows merchants to offer their products and services at the right price and time.
This feature is especially beneficial for merchants using open-source shopping cart plugins integrated with Segpay. It ensures the Segpay payment page always displays the correct total price when customers select multiple items.
How Dynamic Pricing Works
-
Customer Selection: A customer chooses their desired products or services. -
Price Communication: Your system sends the total price to Segpay's SRS (Segpay Reporting Service) service. -
Hash Generation: Segpay returns an encrypted, hashed value based on the total price. -
Join Link Creation: Your system uses the hashed value to create a unique Join Link, directing the customer to the Segpay payment page with the accurate total price.
Setting Up Dynamic Pricing
-
Activation: Contact Segpay Technical Support to enable Dynamic Pricing for your account. -
Compliance Review: Segpay's Compliance Team will review your request. Upon approval, you'll need to define the minimum and maximum prices for your transactions. -
Price Point Configuration: Segpay will configure the allowed price points within your specified range, which you can use with your payment packages.
Secure Hash Generation
For each transaction, Segpay's SRS system will generate a unique, encrypted hash value similar to this:
https://srs.segpay.com/MerchantServices/DynamicPricing/?merchantId=string&amount=120.00
This value must be stored with the purchase record and included in the Join Link to ensure the transaction's security and accuracy.
Constructing the Join Link
Each payment package using dynamic pricing requires its own Join link. Here's an example of the structure:
http://secure2.segpay.com/billing/poset.cgi?x-eticketid=110530:3773&amount=19.95&dynamicpricingid=gX35hP2NARVWRDtv95vWWymKqcY=&dynamicdesc=DYNAMIC+PRICE+POINT+TEST+EUR+ALL+Zeros
Essential Parameters
The following parameters are mandatory for the Join Link:
Parameter | Description |
---|---|
ETICKETID |
Concatenation of dynamic pricing package ID and price point ID. Get these values from the Merchant Portal. Format: xxxxxx:yyyyy Package ID = xxxxxx Price Point ID = yyyyy |
AMOUNT | Specifies the price for the transaction. Currency comes from the price point. |
DYNAMICDESC |
A transaction description shown in email receipts and also used for customers support assistance. This string should be URL-encoded, as in this example: Video+Bundle+for+2+Movies+Movie1+and+Movie2 |
DYNAMICTRANS |
Represents the encrypted value returned from Segpay's SRS system when specifying a charge amount. It must match the provided AMOUNT parameter. Incorrect values or manual URL changes cause transaction failures. For generating this value, contact your Segpay representative. |
You can append other system or user-defined variables to the Join link. For comprehensive details, consult Segpay's Processing API Guide.
Postback and Reporting
Your current reporting and postback methods remain unchanged. Make sure to include the price variable in your postback to accurately record the final price of each transaction. Note that theival
and rval
variables in the postback represent the set dynamic price range, not the actual transaction amount.
For more information on postbacks, see our article, Postbacks.