Download the PHP package darwinpricing/darwinpricing-client without Composer
On this page you can find all versions of the php package darwinpricing/darwinpricing-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download darwinpricing/darwinpricing-client
More information about darwinpricing/darwinpricing-client
Files in darwinpricing/darwinpricing-client
Package darwinpricing-client
Short Description PHP Client for the dynamic geo-pricing engine Darwin Pricing
License LGPL-3.0
Homepage https://www.darwinpricing.com
Informations about the package darwinpricing-client
Darwin Pricing
PHP Client for the dynamic geo-pricing engine Darwin Pricing by SPOSEA
Basic Usage
Create a free account on Darwin Pricing.
Instantiate the Darwin Pricing client with your API credentials:
In order to add our geo-targeted coupon box to your storefront, retrieve the URL of the front-end script:
Then load this script asynchronously on your website:
To track payments and payment reversals, use:
Darwin Pricing optimizes automatically your geo-pricing strategy in order to maximize your total net profit. But you can also maximize any other KPI of your choice, depending on your current business goals. Just send us the appropriate metric instead of your net profit, and your geo-pricing strategy will be optimized accordingly.
Order Details
Instead of computing your net profits, you can also send directly the full order details to your Darwin Pricing account. Net profits will then be computed on your behalf. This will also unlock enhanced reporting capabilities in your Darwin Pricing account, like profit margins and coupon code usage.
In order to track new orders, use:
The customer's e-mail address is only being used to serve geo-targeted newsletter banners in case they are being loaded through an image proxy, like in Google Mail.
Custom integration
Instead of adding our geo-targeted coupon box to your storefront, you can also retrieve the geo-targeted coupon code from the backend of your store with:
This is especially useful if you want to adjust directly your prices to the local market without using a coupon code for this purpose. If you are selling a subscription-based product, you can also retrieve a pricing plan identifier instead of a discount code. Contact us at [email protected] to find out the best solution to fit your needs!