Questions tagged [chargify]

Questions related to chargify.com usage.

Chargify is an online service (SaaS) to help businesses manage their recurring revenue customers. http://chargify.com/

55 questions
8
votes
3 answers

How to pass array of arguments to cURL in command line?

I got desired response when i send cURL request from my PHP script. My request is like this. $data = array ("[product[name]]" => "nw", "[product[handle]]" => 150, "[product[interval_unit]]" => "day", …
ARUNBALAN NV
  • 1,634
  • 4
  • 17
  • 39
6
votes
1 answer

Adding onsubmit to a form via javascript

How would you go about inserting an OnSubmit attribute to a form via Javascript only? I'm pretty new to javascript so if you're able to provide detailed example code, that would be most helpful! Here's the situation: I'm using a hosted signup page…
alex
  • 954
  • 2
  • 9
  • 11
5
votes
2 answers

Parsing FORM-ENCODED parameters with GRAILS (chargify webhooks)

I have a GRAILS 3 controller that receive an HTTP post from a webservice (Chargify) with this format (the payload section has about 100 entries with a lot of sub-fields): POST / HTTP/1.1 Accept: */*; q=0.5, application/xml Accept-Encoding: gzip,…
Sarbyn
  • 340
  • 1
  • 13
5
votes
1 answer

undefined method 'path' for nil:NilClass using chargify_api_ares gem

I feel like this should be a simple problem, but I'm pulling my hair out trying to track it down. I'm installed the chargify_api_ares gem, but can't do even basic things such as Chargify::Subscription.create As I get this path error. I feel like…
RubyNoob
  • 243
  • 1
  • 2
  • 8
2
votes
1 answer

Examples of cucumber features with chargify

Does anyone have examples of cucumber features that uses the chargify APIs (particularly with the chargify_api_ares gem)? I want to write features that create customers and also utilize a factory of customers, but I can't think of a way to clean up…
Dan
  • 141
  • 5
2
votes
1 answer

AngularJS form validation when action attribute exists

I'm using AngularJS and have a vendor who I need to POST data to. Upon submission, they redirect the user back to my site.
Mike Cantrell
  • 683
  • 6
  • 18
2
votes
2 answers

Unable to authenticate on Chargify REST API

I trying to authenticate for a simple GET request on the Chargify API. I am probably missing a detail on how to pass the credential to the service. I got the following error: "The underlying connection was closed: An unexpected error occurred on …
2
votes
1 answer

How to convert hierarchical key value pairs from a string into json with c#?

I have the following http post body sent to a asp.net web api via a web hook from…
Al Polden
  • 890
  • 11
  • 25
2
votes
1 answer

Redirect if an object is not found

I am using the chargify_api_ares gem to search for a Chargify Subscription. @current_subscription = Chargify::Subscription.find_by_customer_reference(@dealer.id) redirect_to(dealers_path) unless @current_subscription However, if no subscription is…
Tony Beninate
  • 1,926
  • 1
  • 24
  • 44
2
votes
1 answer

JsonMappingException: Current token not START_OBJECT (needed to unwrap root name 'Transaction[]'), but START_ARRAY

I'm using Spring's RestTemplate to consume the Chargify API, using JSON as the payload format. It has been going pretty smoothly, however when I try to GET an array of objects it fails miserably. For example, consider the following: Transaction[]…
The Awnry Bear
  • 4,599
  • 3
  • 29
  • 33
1
vote
1 answer

How can I integrate Spreedly/Chargify with a rails app?

I'm a crappy novice programmer and am working on an app which I want Spreedly or Chargify or something similar to do recurring billing. The documentation seems really good but its not dumbed down enough for me to make any use of it. I'm only after…
Dave
  • 1,175
  • 2
  • 21
  • 49
1
vote
3 answers

Make a GET Request and receive parameters

I am working on a Ruby on Rails App.I have to make a GET request to following: https://[@subdomain].chargify.com/subscriptions/[@subscription.id].json The response received is going to be json. I am trying to achieve this by making the GET request…
Smoke
  • 1,052
  • 1
  • 10
  • 24
1
vote
2 answers

Chargify API coupon creation

I am currently working on a project and facing a problem with a task. I am trying to randomly generate a 6 digit coupon number and post it to chargify account via there API. If the coupon creation is successful I want the same coupon code to be send…
Smoke
  • 1,052
  • 1
  • 10
  • 24
1
vote
2 answers

Chargify API - XML issue - '<' not found

I'm trying to run some API scripts found in this github https://github.com/abraham/chargify with this library https://github.com/jforrest/Chargify-PHP-Client/ When I run the subscriptions.php file, I get this error: Warning: …
Kyle Parisi
  • 1,316
  • 1
  • 11
  • 14
1
vote
1 answer

Laravel PUT Method Not Working

updated - I am trying to use the API documentation to change the billing date using the PUT method in Http and Guzzle in Laravel, however, the JSON file would return but it will not change the billing date at all. Reference 1: The official…
zhiyu
  • 67
  • 2
  • 10
1
2 3 4