Note:

Example 1 - Creating a new bill

Bills are easily created by specifying the amount and name options.

PHP

    $payment_details = array(
      'amount'  => '30.00',
      'name'    => 'Donation'
    );

    $billURL = GoCardless::new_bill_url($payment_details);
    

Example 2 -Creating a new subscription URL

PHP


    $payment_details = array(
      'amount'          => '10.00',
      'interval_length' => '1',
      'interval_unit'   => 'month'
    );

    $subscription_url = GoCardless::new_subscription_url($payment_details);

    

Example 3 - Getting merchant details

Getting merchant details.

PHP

$merchant = GoCardless_Merchant::find('247');

Example 4 - Retrieving the details of a specific user

Sample User ID: 438

$user = GoCardless_Bill::find('438');

Example 5 - Retrieving the details of a specific bill

It doesn't look like you have made any payments, here's a sample bill ID for you to retrieve details for. 043RVT596Q

$bill = GoCardless_Bill::find('043RVT596Q');

Example 6 - Retrieving the details of a specific subscription

It doesn't look like you have made any payments, here's a sample subscription ID for you to retrieve details for. 043S7BE67M

$subscription = GoCardless_Subscription::find('043S7BE67M');