ocdladefense / appserver-card-manager
Installs: 35
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:wordpress-theme
Requires
- authorizenet/authorizenet: 1.9.2
This package is auto-updated.
Last update: 2024-12-10 04:07:07 UTC
README
Manage customers' saved payment profiles(cards) on file.
Description
The payment profile manager exposes CRUD operations and related UX to manage customers' saved payment methods on file.
Routes
customer/%contactId/save
-GET
- Create the authorze.net customer profile and save the Contact's customer Profile ID to Salesforce.customer/enroll
-GET
- Initiate the authorize.net customer profile creation process.cards
-GET
- Show all of the saved payment profiles for the current user.card/create
-GET
- Display a form so that the current user can create a new payment profile.card/edit/%id
-GET
- Display a form so that the current user can edit an existing payment profile.card/save
-POST
- Save a new payment profile, or changes made to an existing payment profile.card/delete/%id
-DELETE
- Delete a payment profile.
Required Constants/Settings
- AUTHORIZE_DOT_NET_MERCHANT_ID (string)
- AUTHORIZE_DOT_NET_TRANSACTION_KEY (string)
- AUTHORIZE_DOT_NET_USE_PRODUCTION_ENDPOINT (boolean)
- AUTHORIZE_DOT_NET_AUTO_ENROLL (boolean)
Authorize.net endpoints
- SANDBOX - https://apitest.authorize.net
- PRODUCTION - https://api2.authorize.net
Testing Scripts
Updating a customer's Profile ID.
- Editing a field on Salesforce -
- Don't login to the app.
- Run the
customer/003j000000rU9NvAAK/save
route. - Validate that the route executes without any errors.
- Validate that the UPDATE was successful:
-
In the Salesforce Developer Console run this query:
SELECT Id, Firstname, LastName, Ocdla_Member_Status__c, AuthorizeDotNetCustomerProfileId__c FROM Contact WHERE Id = '003j000000rU9NvAAK'
-