WebService-Braintree

 view release on metacpan or  search on metacpan

t/sandbox/README  view on Meta::CPAN

In order to run these tests you need a file named 'sandbox_config.json' in the current directory.
The file is formatted thusly:

{
  "public_key": "xxx",
  "merchant_id": "xxx",
  "private_key": "xxx"
}

Should you want to contribute to the development of Webservice::Braintree,
please mail zarquon@cpan.org for the shared credentials used by the
development team (however for casual development your own sandbox
credentials should mostly be fine).

You also need to have created elements in the control panel. These items are
verified by test preambles, but the description of how to create them is here.

Also, on a regular basis, you will need to purge your sandbox's data. Do this by
going to Settings -> Purge sandbox data. This generally takes about 30 seconds
and will delete everything that isn't described in this document below. If you
don't purge, you will end up with test failures because these tests cannot
clean up after themselves (many of the API endpoints do not allow deleting).

Add-ons:
Create these by going to Recurring Billing > Add-ons / Discounts (left-side)
    * id=increase_30
      name="Increase 30"
      description="" (default)
      amount=30.00
      duration=subscription

Discounts:
Create these by going to Recurring Billing > Add-ons / Discounts (left-side)
    * id=discount_15
      name="Discount 15"
      description="" (default)
      amount=15.00
      duration=subscription

Subscription Plans:
Create these by going to Recurring Billing > Plans (left-side menu)
    * id=integration_trialless_plan
      name="Integration Trialless Plan"
      description="" (default)
      price=12.34
      include_trial_period=No (default)
      billing_cycle_every=1
      first_bill_date=immediately (default)
      billing_cycles=never_expires (default)
      No addons
      No discounts
    * id=integration_plan_with_add_ons_and_discounts
      name="Integration Plan with Add-ons and Discounts"
      description="" (default)
      price=1.00
      include_trial_period=Yes
          * trial_period=1 day
      billing_cycle_every=1
      first_bill_date=immediately (default)
      billing_cycles=never_expires (default)
      addons:
          * increase_30
      discounts:
          * discount_15

Merchant Accounts:
If you are outside the US, follow these instructions:



( run in 0.665 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )