24/7 Support: 800.608.6482

Navigation


CustomerPaymentCard_Register

This function allows you add a Credit Card to a customers account. It accepts the full card number and will respond back with a token.

This function takes one of three input parameters to identify the customer: Customer_ID, Customer_Login or Edit_Customer

Request Body Parameters

Customer_ID Type:
Number
Title:
Customer ID
Id of customer to associate card with
Customer_Login Type:
String
Title:
Customer Login
Login of customer to associate card with
Edit_Customer Type:
String
Title:
Customer Login
Login of customer to associate card with
CardType Type:
String
Title:
Card Type
Card Type. Default Values inlcude: Visa, MasterCard, American Express, Discover
CardNumber Type:
Number
Title:
Card Numnber
Full 16 or 15 digit credit card number. Dashes will automatically be stripped.
ExpirationMonth Type:
Number
Title:
Expiration Month
2 Digit Numeric Month, ex: 04 for March
ExpirationYear Type:
Number
Title:
Expiration Year
4 Digit Numeric Year, ex: 2021
Address1 Type:
String
Title:
Address Line 1
Address Line 1
Address2 Type:
String
Title:
Address Line 2
Address Line 2
City Type:
String
Title:
City
City
State Type:
String
Title:
State
2 Digit State Code, ex: CA
Zip Type:
String
Title:
Zip Code
Zip Code
Country Type:
String
Title:
Country
2 Digit Country Code, ex: US

Response Parameters

success Type:
Boolean
Title:
Success
Value of 1 or 0 if the insert was successful
id Type:
Number
Title:
ID
Newly created saved card id
cust_id Type:
Number
Title:
Customer ID
id of customer account, new card was added
fname Type:
String
Title:
First Name
First Name on Card
lname Type:
String
Title:
Last Name
Last Name on Card
exp_month Type:
Number
Title:
Expiration Month
Expiration Month
exp_year Type:
Number
Title:
Expiration Year
Expiration Year
lastfour Type:
Number
Title:
Last 4 Card Digits
Last 4 Card Digits
addr1 Type:
String
Title:
Address Line 1
Address Line 1
addr2 Type:
String
Title:
Address Line 2
Address Line 2
city Type:
String
Title:
City
City
state Type:
String
Title:
State
State
zip Type:
String
Title:
Zip Code
Zip Code
cntry Type:
String
Title:
Country
Country
lastused Type:
Unix Timestamp
Title:
Last Used
Unix Timestamp for last used or 0 = never used
token Type:
String
Title:
Card Token
MivaPay Token Respresenting Card
type_id Type:
Number
Title:
Card Type ID
Card Type ID. Defaults: 1 = Visa, 2 = MasterCard, 3 = American Express, 4 = Discover
refcount Type:
Number
Title:
Reference Count
Number of Subscriptions this card is linked to
type Type:
String
Title:
Card Type
Card Type
mod_code Type:
String
Title:
Module Code
Payment Gateway Module Code being used by MivaPay
meth_code Type:
String
Title:
Payment Method Code
Payment Gateway Method Code Linked to the Miva Pay Payment Card Type

Example Request

Example Response

This website uses cookies to identify visitors, track visitors to our website, store login session information and to remember your user preferences. By continuing to use this site you agree to our use of cookies. Learn More.

This website uses cookies. By continuing to use this site you agree to our use of cookies. Learn More.

Accept

Copyright © 1997 – 2023 Miva©, Miva Merchant©, MivaPay©, MivaCon©, Camp Miva ℠, Miva, Inc. All Rights Reserved.