Skip to content
This repository has been archived by the owner on Mar 20, 2018. It is now read-only.

Commit

Permalink
Add missing payment profile attributes to v2 api endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoak committed Oct 16, 2015
1 parent 96fcb99 commit 7066751
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
37 changes: 23 additions & 14 deletions doculab/docs/api-card-update.textile
Expand Up @@ -6,19 +6,29 @@ In order for your request to be processed, you must set up Secure Parameters. S

Note: the @subscription_id@ MUST be part of your @secure[data]@ parameter for the card update request to be processed.

* @first_name@ (required) First name of the cardholder or bank account holder.
* @last_name@ (required) Last name of the cardholder or bank account holder.
* @card_number@ (required if the payment method is a credit card) The credit card number.
* @cvv@ (optional if the payment method is a credit card) The 3 or 4 digit card verification value.
* @expiration_month@ (required if the payment method is a credit card) The two-digit card expiration month.
* @expiration_year@ (required if the payment method is a credit card) The four-digit card expiration year.
* @bank_name@ (required if the payment method is a bank account) The name of the bank where the customer's account resides
* @bank_routing_number@ (required if the payment method is a bank account) The routing number of the bank
* @bank_account_number@ (required if the payment method is a bank account) The customer's bank account number
* @bank_account_type@ (required if the payment method is a bank account) Either @checking@ or @savings@
* @bank_account_holder_type@ (required if the payment method is a bank account) Either @personal@ or @business@
* @payment_method_nonce@
* @paypal_email@
* @payment_profile@
** @first_name@ First name on card or bank account
** @last_name@ Last name on card or bank account
** @card_number@ The full credit card number (string representation, i.e. "5424000000000015")
** @cvv@ (optional if the payment method is a credit card) The 3 or 4 digit card verification value.
** @expiration_month@ The 1- or 2-digit credit card expiration month, as an integer or string, i.e. "5"
** @expiration_year@ The 4-digit credit card expiration year, as an integer or string, i.e. "2012"
** @billing_address@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing street address (i.e. "123 Main St."). _This value is merely passed through to the payment gateway_.
** @billing_address_2@ (Optional) Second line of the customer's billing address i.e. "Apt. 100"
** @billing_city@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing address city (i.e. "Boston"). _This value is merely passed through to the payment gateway_.
** @billing_state@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing address state (i.e. "MA"). _This value is merely passed through to the payment gateway_.
** @billing_zip@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing address zip code (i.e. "12345"). _This value is merely passed through to the payment gateway_.
** @billing_country@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing address country, preferably in "ISO 3166-1 alpha-2":http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 format (i.e. "US"). _This value is merely passed through to the payment gateway. Some gateways require country codes in a specific format. Please check your gateway's documentation. At this time, when creating a bank account, only @US@ is accepted._
** @bank_name@ (Required when creating a subscription with ACH) The name of the bank where the customer's account resides
** @bank_routing_number@ (Required when creating a subscription with ACH) The routing number of the bank
** @bank_account_number@ (Required when creating a subscription with ACH) The customer's bank account number
** @bank_account_type@ (Required when creating a subscription with ACH) Either @checking@ or @savings@
** @bank_account_holder_type@ (Required when creating a subscription with ACH) Either @personal@ or @business@
** @payment_type@ Required for PayPal. Set to @paypal_account@.
** @payment_method_nonce@ Required for Paypal.
** @paypal_email@ Required for PayPal, but only used for display.

h2. Example Form

<pre><code><form method="post" action="https://api.chargify.com/api/v2/subscriptions/<subscription.id>/card_update">

Expand Down Expand Up @@ -52,7 +62,6 @@ Note: the @subscription_id@ MUST be part of your @secure[data]@ parameter for th
<input type="submit" value="Update" />
</form></code></pre>


h2. Output Attributes

When Chargify redirects back to your "redirect URI":chargify-direct-introduction#redirection-uri, it will include the following query-string parameters:
Expand Down
1 change: 1 addition & 0 deletions doculab/docs/api-signups.textile
Expand Up @@ -30,6 +30,7 @@ The product may be specified by either @product[id]@ or by @product[handle]@ (AP
** @first_name@ First name on card or bank account
** @last_name@ Last name on card or bank account
** @card_number@ The full credit card number (string representation, i.e. "5424000000000015")
** @cvv@ (optional if the payment method is a credit card) The 3 or 4 digit card verification value.
** @expiration_month@ The 1- or 2-digit credit card expiration month, as an integer or string, i.e. "5"
** @expiration_year@ The 4-digit credit card expiration year, as an integer or string, i.e. "2012"
** @billing_address@ (Optional, may be required by your product configuration or gateway settings) The credit card or bank account billing street address (i.e. "123 Main St."). _This value is merely passed through to the payment gateway_.
Expand Down

0 comments on commit 7066751

Please sign in to comment.