Example #1
0
<?php

require_once '../vendor/autoload.php';
use AlternativePayments\Config;
Config::setApiKey("rHErfc0m7n9GKFMNFSfNuO1QM7lFhCEh3mv0MKGR");
Config::setApiUrl("https://api.alternativepayments.com/api");
?>
<html>
    <head>        
        <title>Alternative Payments test examples</title>
    </head>
    <body>
        <table>
            <tr>
                <td><strong>Options:</strong></td>
            </tr>
            <tr>
                <td><a href="index.php?option=customer&action=add">Add customer</a></td>
                <td><a href="index.php?option=customer&action=get">Get customer</a></td>
                <td><a href="index.php?option=customer&action=getall">Get all customers</a></td>
            </tr>
            <tr>
                <td><table>
                        <tr>
                            <td><a href="index.php?option=transaction&action=create_new_transaction_sepa">Add SEPA transaction</a></td></tr>
                        <tr>
                            <td><a href="index.php?option=transaction&action=create_new_transaction_brazilpayboleto">Add BrazilPayBoleto transaction</a></td></tr>
                        <tr>
                            <td><a href="index.php?option=transaction&action=create_new_transaction_brazilpaybanktransfer">Add BrazilPayBankTransfer transaction</a></td></tr>
                        <tr>
                            <td><a href="index.php?option=transaction&action=create_new_transaction_teleingreso">Add Teleingreso transaction</a></td></tr>