This is a small ASP.NET MVC app that demonstrates how to use Chargify Direct for Signups. It leverages the .NET Chargify2 library to create the Direct secure form inputs and signature, verify the redirect response, and fetch the call response.
- Clone this repo to your local machine
- Edit
web.config
to add your own API User credentials (created on your site, https://your-subdomain.chargify.com/settings#chargify-direct) - Create products on your API User's Site with handles 'basic' and 'premium' (or edit the example to match product handles you have)
- Remove the https global filter (if applicable)
- Run the app
- Uses the transparent redirect to post sensitive data directly to Chargify
- Uses the Call API endpoint to fetch information to display a receipt
##Demo## This code has been deployed here for your convenience, so you can create test subscriptions.
You can try a sample live update endpoint here.
For v1 API access, try the Chargify.NET wrapper.