Link to plugin page: https://zeroqode.com/plugin/magpie-payment-plugin-1567769536887x690608670298867800
Introduction
The Magpie GW Plugin gives the ability to create customer account, create a card token, manage payments and account preferences. Uses HTTP methods and a RESTful endpoint structure .
Prerequisites
You must have an account with Magpie to interact with the API.
Initial Setup
- Create account on Magpie to interact with API
- Go to Developers tab to access API Keys
3. After plugin installation, enter your Private Key in the Username field in plugin Settings
4. You're all set to use plugin Actions.
Plugin Actions
Credit Card actions
- Create a card token
Creates a single use token that wraps the details of a credit card.
These tokens can only be used once: by creating a new charge, or attaching them to a customer.
To create a token card you need your public key found in Magpie Dashboard, under the API Keys tab.
Parameters:
- card -The card a token will represent.
2. Retrieve a token.
Retrieves the token with the given ID.
Use your public key found in Magpie Dashboard, for this action.
Parameters:
- token_idβ The ID of the token to retrieve.
Customer actions
- Create a customer
Creates a new customer object with the given credentials: userβs email and some description.
Parameters:
- email β (Required) Email address
- description β (Required) A description of this account. Could be the name of the customer (ex: Juan de la Cruz), or any arbitrary text (ex: Created by App for Juan de la Cruz).
2. Retrieve a customer.
Retrieves the details of an existing customer.
You need only to supply the unique customer identifier that was returned upon customer creation.
- customer_id βThe ID of the customer to retrieve.
3. Update a customer
Updates the specified customer by setting the source parameter (i.e. a card ID), the card will be added to the customerβs payment sources.
Note: This operation is required, because it binds a card to a customer, without this action it will be impossible to use the transaction action.
- customer_id β The ID of the customer to update.
4. Delete a customer.
Permanently delete a customer.
Important: This cannot be undone.
Parameters:
- customer_id β The ID of the customer to delete.
5. Delete customer fund source
Deletes a customerβs fund source.
Parameters:
- customer_id β The ID of the customer to delete fund source from.
- card_id β The ID of the fund source to delete.