Spreedly Trial Guide
Add a Test Gateway
We recommend getting started with Spreedly's test gateway.
$ curl https://core.spreedly.com/v1/gateways.json \
 -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s45 ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
 -H 'Content-Type: application/json' \
 -d '{
       "gateway": {
         "gateway_type": "test"
       }
     }'
$ curl https://core.spreedly.com/v1/gateways.xml \
 -u 'C7cRfNJGODKh4Iu5Ox3PToKjniY:4UIuWybmdythfNGPqAqyQnYha6s451ri0fYAo4p3drZUi7q2Jf4b7HKg8etDtoKJ' \
 -H 'Content-Type: application/xml' \
 -d '<gateway></gateway>
       <gateway_type>test</gateway_type>
     '
Using your API credentials, you can add a gateway by POSTing to the Spreedly API endpoint https://core.spreedly.com/v1/gateways.<format>. For example, to add the </format>Spreedly test gateway to your environment, you can run the above curl command (remembering to replace the example environment key and access secret with your own).
1
Tell Us About Yourself
2
Set Up Environment
3
Add a Test Gateway
4
Run a Test Transaction