chargify Discussions Rss Feedhttp://chargify.codeplex.com/Thread/List.aspxchargify Discussions Rss DescriptionNew Post: Pagination & Directionhttp://chargify.codeplex.com/discussions/657158<div style="line-height: normal;">Is there any way to set the pagination direction? Chargify seems to support it but I don't see it in the implementation.
<br />
<br />
If we're paginating through transactions using &quot;since_id&quot; it would make the most sense to have the direction be &quot;asc&quot; so that any new transactions don't end up overlapping with the pagination. Chargify defaults to &quot;desc&quot;.<br />
</div>robprcodeplexMon, 15 Aug 2016 18:18:09 GMTNew Post: Pagination & Direction 20160815061809PNew Post: Starting out - Desktop Apphttp://chargify.codeplex.com/discussions/656467<div style="line-height: normal;">I am writing a desktop application in VB.NET.<br />
<br />
Can I use this NuGet package to let the desktop app to be able to reach out to Chargify and see if the customer has a valid subscription? I can make the user put their UN/PW into the app.
<br />
<br />
Any thoughts or guidance are greatly appreciated!
<br />
<br />
Sevvn<br />
</div>SevvnSat, 16 Jul 2016 02:15:29 GMTNew Post: Starting out - Desktop App 20160716021529ANew Post: Schedule change for next renewalhttps://chargify.codeplex.com/discussions/653503<div style="line-height: normal;">Hi!
<br />
As you could see on screenshoot (<a href="https://www.dropbox.com/s/d8idvg8d4de5yqs/ScheduleChange.jpg?dl=0" rel="nofollow">https://www.dropbox.com/s/d8idvg8d4de5yqs/ScheduleChange.jpg?dl=0</a>) on Chargify site when you change subscription product you could select &quot;Schedule change for next renewal&quot;.
<br />
My question: Is there any way to do this by using client? <br />
</div>karpenbergTue, 12 Apr 2016 16:26:01 GMTNew Post: Schedule change for next renewal 20160412042601PNew Post: Get next billing amounthttps://chargify.codeplex.com/discussions/653501<div style="line-height: normal;">Hi!<br />
I use your .net client in project and have a question about fetching next billing amout.<br />
As you could see on screenshoot (<a href="https://www.dropbox.com/s/cic77lnqk51k90x/BillingAmount.jpg?dl=0" rel="nofollow">https://www.dropbox.com/s/cic77lnqk51k90x/BillingAmount.jpg?dl=0</a>) on Chargify site you could check your next billing amout. It depends on product price, components usage, current balance etc. <br />
My question: Is there any way to fetch this amout by using client? <br />
For now I could fetch only product price and current balance. My target is to display next billing amount as it is on chargify site.<br />
</div>karpenbergTue, 12 Apr 2016 16:18:49 GMTNew Post: Get next billing amount 20160412041849PNew Post: Error when Creating Customer and Subscriptionhttp://chargify.codeplex.com/discussions/231150<div style="line-height: normal;">I have nearly identical code and I'm using 1 for the fullnumber and US for the country code and I'm still getting 422 unprocessable entity.<br />
Code is below:<br />
<br />
public static bool MakeSubscription ()<br />
<pre><code> {
ICustomerAttributes newcustomer = makeNewCustomer();
ICustomer registeredCustomer = chargify.CreateCustomer(newcustomer.FirstName, newcustomer.LastName, newcustomer.Email, newcustomer.Phone, newcustomer.Organization, newcustomer.SystemID);
ICreditCardAttributes newcard = makeCreditCardAttributes(newcustomer);
ISubscription newSubcription = chargify.CreateSubscription(&quot;converdiant-subscription&quot;, registeredCustomer.SystemID, newcard);
return false;
}
public static ICreditCardAttributes makeCreditCardAttributes(ICustomerAttributes newcustomer)
{
Random random = new Random();
ICreditCardAttributes newcard = new CreditCardAttributes()
{
FirstName = newcustomer.FirstName,
LastName = newcustomer.LastName,
ExpirationMonth = 1,
ExpirationYear = 2020,
FullNumber = &quot;1&quot;,
CVV = &quot;123&quot;,
BillingAddress = &quot;123 Main St.&quot;,
BillingCity = &quot;New York&quot;,
BillingCountry = &quot;US&quot;,
BillingState = &quot;New York&quot;,
BillingZip = &quot;90210&quot;
};
return newcard;
}
public static ICustomerAttributes makeNewCustomer()
{
ICustomerAttributes newcustomer = new CustomerAttributes(&quot;Andrew&quot;, &quot;Jones&quot;, &quot;aljones15@gmail.com&quot;, &quot;Chargify&quot;, Guid.NewGuid().ToString());
return newcustomer;
}
</code></pre>
here are my chargigy connect settings with valid whatever replacing my stuff<br />
I'm just posting it so the UseJSON = true is a possibility in the error<br />
public static ChargifyConnect chargify = new ChargifyConnect()<br />
<pre><code> {
apiKey = &quot;valid key&quot;,
Password = &quot;x&quot;,
URL = &quot;valid url&quot;,
SharedKey = &quot;valid share key&quot;,
UseJSON = true
};
</code></pre>
We are running in test mode and the error is the same unprocessable entity. not sure what is invalid in my submit.<br />
</div>liminal18Wed, 27 May 2015 03:11:12 GMTNew Post: Error when Creating Customer and Subscription 20150527031112ANew Post: Starting Outhttp://chargify.codeplex.com/discussions/638341<div style="line-height: normal;">Never mind, I found the xml documentation and was able to have everything I needed work out for me. Thanks again for this wrapper.<br />
</div>DavidWebbWed, 20 May 2015 14:21:52 GMTNew Post: Starting Out 20150520022152PNew Post: Starting Outhttp://chargify.codeplex.com/discussions/638341<div style="line-height: normal;">First of all, thank you for putting this together this awesome wrapper. I am new to C# programming and this has been a lifesaver.<br />
<br />
I have successfully been able to add a subscription using the wrapper, but I am unsure as to how to do a couple of things.
<br />
<br />
1.) When creating a subscription and customer at the same time, how can I apply a coupon code.
<br />
<br />
2.) How can i add multiple components at subscription+customer creation. I have been able to add one by adding the id, quantity to the end of the subscription call, but when i try adding another, it won't let me.<br />
</div>DavidWebbTue, 19 May 2015 20:03:14 GMTNew Post: Starting Out 20150519080314PNew Post: GetCouponsForProductFamily APIhttp://chargify.codeplex.com/discussions/588399<div style="line-height: normal;">I needed to pull my lists of Chargify Products / Components / Coupons into my database, and discovered that Chargify does not publish an API that lets you get a list of your Coupons without already knowing the Coupon name or id in advance.
<br />
<br />
Well apparently there IS an undocumented API <a href="https://subdomain.chargify.com/product_families/{product_family_id}/coupons.format" rel="nofollow">https://subdomain.chargify.com/product_families/{product_family_id}/coupons.format</a>&quot; which will return the list of Coupons for a given ProductFamily.
<br />
<br />
I implemented the API in my project by inheriting from ChargifyConnect and calling some of the non-public methods using reflection.
<br />
<br />
Here is the code for the class in VB.NET (porting to C# will be straightforward for anyone who might need it in C#).<br />
<pre><code>Public Class ChargifyConnect
Inherits ChargifyNET.ChargifyConnect
Public Sub New(siteUrl As String, apiKey As String, password As String)
MyBase.New(siteUrl, apiKey, password)
End Sub
Public Function GetCouponsForProductFamily(productFamilyId As Integer) As IDictionary(Of Integer, ICoupon)
Dim DoRequest = GetType(ChargifyNET.ChargifyConnect).GetMethod(&quot;DoRequest&quot;, BindingFlags.Instance Or BindingFlags.NonPublic, Type.DefaultBinder, New Type() {GetType(String)}, Nothing)
Dim str = CType(DoRequest.Invoke(Me, New Object() {String.Format(&quot;product_families/{0}/coupons.{1}&quot;, productFamilyId, If(Me.UseJSON, &quot;json&quot;, &quot;xml&quot;))}), String)
Dim dict = New Dictionary(Of Integer, ICoupon)
If str.IsXml() Then
Dim LoadFromNode = GetType(Coupon).GetMethod(&quot;LoadFromNode&quot;, BindingFlags.Instance Or BindingFlags.NonPublic, Type.DefaultBinder, New Type() {GetType(XmlNode)}, Nothing),
xmlDocument = New XmlDocument()
xmlDocument.LoadXml(str)
If xmlDocument.ChildNodes.Count = 0 Then
Throw New InvalidOperationException(&quot;Returned XML not valid&quot;)
End If
For Each childNode As XmlNode In xmlDocument.ChildNodes
If childNode.Name = &quot;coupons&quot; Then
For Each xmlNodes As XmlNode In childNode.ChildNodes
If xmlNodes.Name = &quot;coupon&quot; Then
Dim coupon = New Coupon
LoadFromNode.Invoke(coupon, New Object() {xmlNodes})
If dict.ContainsKey(Coupon.ID) Then
Throw New InvalidOperationException(&quot;Duplicate id values detected&quot;)
End If
dict.Add(Coupon.ID, Coupon)
End If
Next
End If
Next
ElseIf str.IsJSON() Then
Dim Parse = GetType(JsonArray).GetMethod(&quot;Parse&quot;, BindingFlags.Static Or BindingFlags.NonPublic, Type.DefaultBinder, New Type() {GetType(String), GetType(Integer).MakeByRefType()}, Nothing),
dummy = 0,
index = 0,
jsonArray = DirectCast(Parse.Invoke(Nothing, New Object() {str, dummy}), JsonArray)
While index &lt;= jsonArray.Length - 1
Dim jsonCoupon = TryCast(jsonArray.Items(index), JsonObject)
If jsonCoupon.ContainsKey(&quot;coupon&quot;) Then
Dim item = TryCast(jsonCoupon(&quot;coupon&quot;), JsonObject),
coupon = New Coupon(item)
If dict.ContainsKey(Coupon.ID) Then
Throw New InvalidOperationException(&quot;Duplicate ID values detected&quot;)
End If
dict.Add(coupon.ID, coupon)
End If
index += 1
End While
End If
Return dict
End Function
End Class
</code></pre>
</div>kengrandersonFri, 20 Mar 2015 02:54:12 GMTNew Post: GetCouponsForProductFamily API 20150320025412ANew Post: Renewal Preview APIhttp://chargify.codeplex.com/discussions/573845<div style="line-height: normal;">I'm not seeing any methods that use the Renewal Preview API. The use case for this would be to get information about a specified subscriptions next renewal, including renewal time and the price. Are there plans to implement a method that gets this?
<br />
<br />
Renewal Preview API: <a href="https://docs.chargify.com/api-renewal-preview" rel="nofollow">https://docs.chargify.com/api-renewal-preview</a><br />
</div>bieoeTue, 02 Dec 2014 19:31:09 GMTNew Post: Renewal Preview API 20141202073109PNew Post: Remove Coupon Codehttp://chargify.codeplex.com/discussions/549924<div style="line-height: normal;">I noticed there was an implementation for adding a Coupon but do not see one for removing a Coupon. Is this something that will be implemented in the near future?
<br />
<br />
I am trying to change a subscription's coupon programmatically using this library, but do not see how that is possible at this time.
<br />
<br />
Thanks so much for all your hard work,
<br />
<br />
-Brett<br />
</div>digeratiMTFri, 27 Jun 2014 23:55:03 GMTNew Post: Remove Coupon Code 20140627115503PNew Post: Next renewal Incomehttp://chargify.codeplex.com/discussions/549920<div style="line-height: normal;">Hi,<br />
I need to get the next renewal charges(Expected Income) . There is an API for that in Chargify. <a href="https://&lt;subdomain&gt;.chargify.com/subscriptions/&lt;subscription_id&gt;/renewals/preview.json" rel="nofollow">https://<subdomain>.chargify.com/subscriptions/<subscription_id>/renewals/preview.json</a><br />
Is there something like this already? <br />
<br />
Thanks,<br />
Theja<br />
</div>thejavangumalliFri, 27 Jun 2014 23:06:05 GMTNew Post: Next renewal Income 20140627110605PNew Post: Cancel subscription via APIhttp://chargify.codeplex.com/discussions/547632<div style="line-height: normal;">Hello,
<br />
after I have posted this question I have noticed that there is already method which is called: DeleteSubscription and it in fact cancels subscription.
<br />
I will use it, and let you know if it's what I need.
<br />
Thank for reply!<br />
</div>kubapalaszFri, 06 Jun 2014 11:23:10 GMTNew Post: Cancel subscription via API 20140606112310ANew Post: Cancel subscription via APIhttp://chargify.codeplex.com/discussions/547632<div style="line-height: normal;">Jakub,
<br />
<br />
The functionality is already in there. If you want to make changes, just submit a patch and I'll roll it in.<br />
</div>djbyterFri, 06 Jun 2014 11:03:40 GMTNew Post: Cancel subscription via API 20140606110340ANew Post: Cancel subscription via APIhttp://chargify.codeplex.com/discussions/547632<div style="line-height: normal;">Hi,<br />
I need to cancel subscription via .net api.<br />
I can develop it myself, I mean modify Chargify.NET .dll to enable such functionality.<br />
Who can I contact for some kind of developer support?<br />
Can I commit code somewhere so that it could be used by someone else?<br />
<br />
Best regards<br />
Jakub P.<br />
</div>kubapalaszThu, 05 Jun 2014 09:18:43 GMTNew Post: Cancel subscription via API 20140605091843ANew Post: Failed transactionshttp://chargify.codeplex.com/discussions/483910<div style="line-height: normal;">Hello i am using chargify api and i need to get failed transaction list.
<br />
How can i achieve this?
<br />
plz helpme<br />
</div>meulrajpuTue, 07 Jan 2014 08:38:20 GMTNew Post: Failed transactions 20140107083820ANew Post: Error when Creating Customer and Subscriptionhttp://chargify.codeplex.com/discussions/231150<div style="line-height: normal;">Just a reminder, if you don't use the right test card number - you will get a 422 which means it didn't go through because it was declined (or some other gateway issue). For charges, there's no way to see the gateway response yet - but for subscriptions, you should see the attempted signup and gateway request/response to be able to debug those 422's.<br />
</div>djbyterThu, 17 Oct 2013 14:31:05 GMTNew Post: Error when Creating Customer and Subscription 20131017023105PNew Post: Error when Creating Customer and Subscriptionhttp://chargify.codeplex.com/discussions/231150<div style="line-height: normal;">@randymorris - It's not valid, doesn't pass the LUHN check.<br />
</div>djbyterThu, 17 Oct 2013 14:29:39 GMTNew Post: Error when Creating Customer and Subscription 20131017022939PNew Post: Error when Creating Customer and Subscriptionhttp://chargify.codeplex.com/discussions/231150<div style="line-height: normal;">
<div dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif; font-size:12pt">
<div>That really depends on what your code is doing, can you create a ticket (with the code that generates the 422 error) at help.chargify.com and ask for Kori there? I’ll be able to provide the support you need through that channel.</div>
<div>
<div></div>
<div>Kori Francis<br>
Lead Software Developer<br>
Clinical Support Systems<br>
P: 613-767-8864<br>
F: 613-280-1520</div>
<div></div>
</div>
<div style="padding-top:5px; border-top-color:rgb(229,229,229); border-top-width:1px; border-top-style:solid">
<div><font face="Calibri, 'Segoe UI', Meiryo, 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Khmer UI', 'Nirmala UI', Tunga, 'Lao UI', Ebrima, sans-serif" style="line-height:15pt; letter-spacing:0.02em; font-family:Calibri"><b>From:</b> kindlebit<br>
<b>Sent:</b> ‎Thursday‎, ‎October‎ ‎17‎, ‎2013 ‎2‎:‎33‎ ‎AM<br>
<b>To:</b> [email removed]</font></div>
</div>
<div></div>
<p>From: kindlebit</p>
<div id="ThreadNotificationPostBody">I am getting the same error &quot;The server returned 'Unprocessable Entity' with the status code 422 (422) when posting&quot;.
<br>
<br>
Please let me know if someone found any solution<br>
</div>
</div>
</div>djbyterThu, 17 Oct 2013 13:43:54 GMTNew Post: Error when Creating Customer and Subscription 20131017014354PNew Post: Error when Creating Customer and Subscriptionhttp://chargify.codeplex.com/discussions/231150<div style="line-height: normal;">I am getting the same error &quot;The server returned 'Unprocessable Entity' with the status code 422 (422) when posting&quot;.
<br />
<br />
Please let me know if someone found any solution<br />
</div>kindlebitThu, 17 Oct 2013 06:33:13 GMTNew Post: Error when Creating Customer and Subscription 20131017063313ANew Post: CreateSubscription not allowing new sub on existing customerhttp://chargify.codeplex.com/discussions/451766<div style="line-height: normal;">Hey,
<br />
<br />
Sorry for the delay. The tough thing about the way I've written the library (something I'm trying to fix with the next version) is that there are a buttload of overloads for the CreateSubscription method which make it very hard to maintain. I'd need specific info to help you out, so go create a ticket at help.chargify.com mentioning this thread.<br />
</div>djbyterFri, 27 Sep 2013 17:46:56 GMTNew Post: CreateSubscription not allowing new sub on existing customer 20130927054656P