TinyPass Developer's Resources

Pay What You Want

Publishers can specify a minimum price above which users are free to pay any price that they choose. This can be accomplished by simply specifying a price in the format below.

Note that only one minimum price can be specified per offer when using custom pricing.

//Let you users pay any price above $10
$po = new TPPriceOption(">$10", "24 hours");
$offer = new TPOffer($resource, $po);
 
//You can drop the $ sign if your price is actually USD
$po = new TPPriceOption(">10", "24 hours");
$offer = new TPOffer($resource, $po);
 
//You can also use "pay what you want" model with foreign currencies
$po = new TPPriceOption(">10 EUR", "24 hours");
$offer = new TPOffer($resource, $po);

//Let you users pay any price above $10
PriceOption po = new PriceOption(">$10", "24 hours");
Offer offer = new Offer(resource, po);
 
//You can drop the $ sign if your price is actually USD
PriceOption po = new PriceOption(">10", "24 hours");
Offer offer = new Offer(resource, po);
 
//You can also use "pay what you want" model with foreign currencies
PriceOption po = new PriceOption(">10 EUR", "24 hours");
Offer offer = new Offer(resource, po);

//Let you users pay any price above $10
PriceOption po = new PriceOption(">$10", "24 hours");
Offer offer = new Offer(resource, po);
 
//You can drop the $ sign if your price is actually USD
PriceOption po = new PriceOption(">10", "24 hours");
Offer offer = new Offer(resource, po);
 
//You can also use "pay what you want" model with foreign currencies
PriceOption po = new PriceOption(">10 EUR", "24 hours");
Offer offer = new Offer(resource, po);

# Let you users pay any price above $10
price_option = Tinypass::PriceOption.new('>$10', '24 hours')
offer = Tinypass::Offer.new(resource, price_option)
 
# You can drop the $ sign if your price is actually USD
price_option = Tinypass::PriceOption.new('>10', '24 hours')
offer = Tinypass::Offer.new(resource, price_option)
 
# You can also use "pay what you want" model with foreign currencies
price_option = Tinypass::PriceOption.new('>10 EUR', '24 hours')
offer = Tinypass::Offer.new(resource, price_option)