I am using Braintree payment gateway in my PHP application. I am creating subscription page on which I want to show all plans, so that the customer can subscribe any of them. How can we show all plans using PHP?
I have used the following code:
require_once ("../braintree/_environment.php");
$plans = Braintree_Plan::all();
print_r($plans);
but it shows nothing. I already have created a plan in my braintree account.
Following is the code for _environment.php file
<?php
require_once('braintree-php/lib/Braintree.php');
Braintree_Configuration::environment('sandbox');
Braintree_Configuration::merchantId('merchantkey');
Braintree_Configuration::publicKey('publickey');
Braintree_Configuration::privateKey('privatekey');
?>