Basic integration:

Horizontal: <!-- Begin Allopass Checkout-Button Code --> <script type="text/javascript" src="https://payment.allopass.com/buy/checkout.apu?ids=228699&idd=1155074&lang=fr&carousel=row"></script> <noscript> <a href="https://payment.allopass.com/buy/buy.apu?ids=228699&idd=1155074&carousel=row" style="border:0"> <img src="https://payment.allopass.com/static/buy/button/en/162x56.png" style="border:0" alt="Buy now!" /> </a> </noscript> <!-- End Allopass Checkout-Button Code -->
Vertical: <!-- Begin Allopass Checkout-Button Code --> <script type="text/javascript" src="https://payment.allopass.com/buy/checkout.apu?ids=228699&idd=1155074&lang=fr&carousel=col"></script> <noscript> <a href="https://payment.allopass.com/buy/buy.apu?ids=228699&idd=1155074&carousel=col" style="border:0"> <img src="https://payment.allopass.com/static/buy/button/en/162x56.png" style="border:0" alt="Buy now!" /> </a> </noscript> <!-- End Allopass Checkout-Button Code -->

iFrame Basic integration:

<iframe src="https://payment.allopass.com/buy/buy.apu?ids=228699&idd=1155074" style="width: 550px; height: 480px;" frameborder="0"></iframe>

iFrame no carousel integration:

<iframe src="https://payment.allopass.com/acte/sms/purchase.apu?ids=228699&idd=1155074" style="width: 550px; height: 480px;" frameborder="0"></iframe>

API no carousel country filtered integration:

prepareTransaction(array( 'site_id' => $site_id, 'pricepoint_id' => 22, 'product_name' => $product_name, 'forward_url'=> $forward_url, 'amount' => $amount, 'reference_currency' => 'EUR', )); $url = $response->getBuyUrl(); ?> <?php $response = $api->prepareTransaction(array( 'site_id' => $site_id, 'pricepoint_id' => 22, 'product_name' => $product_name, 'forward_url'=> $forward_url, 'amount' => $amount, 'reference_currency' => 'EUR', )); $url = $response->getBuyUrl(); ?> <iframe src="<? echo $url; ?>" style="width: 550px; height: 480px;" frameborder="0"></iframe>

API full customer integration:

getOnetimePricing(array('site_id' => $site_id, 'product_id' => $product_id, 'country' => 'FR', 'type' => 'premium-sms')); $objDOM = new DOMDocument("1.0","utf-8"); $objDOM->loadXML($response); $pricing = $objDOM->getElementsByTagName("market"); $obj = @new SimpleXMLElement(trim($response)); $market = $obj->markets->market; $id = array(); foreach ($market->pricepoint as $pricepoint) { $id = $pricepoint['id']; $price[(int)$id] = $pricepoint; $keyword = $pricepoint->keywords->keyword['name']; $shortcode = $pricepoint->keywords->keyword['shortcode']; echo 'Pour recevoir votre code par SMS envoyez ' . '
' . $keyword . ' au ' . $shortcode . '' . '
' . $pricepoint->description; } ?> Entrez votre code d'accès pour obtenir votre achat :
<?php $response = $api->getOnetimePricing(array('site_id' => $site_id, 'product_id' => $product_id, 'country' => 'FR', 'type' => 'premium-sms')); $objDOM = new DOMDocument("1.0","utf-8"); $objDOM->loadXML($response); $pricing = $objDOM->getElementsByTagName("market"); $obj = @new SimpleXMLElement(trim($response)); $market = $obj->markets->market; $id = array(); foreach ($market->pricepoint as $pricepoint) { $id = $pricepoint['id']; $price[(int)$id] = $pricepoint; $keyword = $pricepoint->keywords->keyword['name']; $shortcode = $pricepoint->keywords->keyword['shortcode']; echo 'Pour recevoir votre code par SMS envoyez ' . '<br><strong>' . $keyword . '</strong> au <strong>' . $shortcode . '</strong>' . '<br>' . $pricepoint->description; } ?> Entrez votre code d'accès pour obtenir votre achat : <br/> <form action="https://payment.allopass.com/api/onetime/validate-codes.apu" method="post"> <input type="hidden" value="<? echo $site_id; ?>" name="site_id"> <input type="hidden" value="<? echo $product_id; ?>" name="product_id"> <input type="text" name="code[]" value=""> <input type="submit" value="send"> </form>