Fullscreen
Loading...
 
[Show/Hide Right Column]

Payment




Introduced in Tiki5, the payment feature allows to request payments and manage them and connect payments to other features. Payments are not meant to be a complete cart feature or to be used for complex international trade. It does not handle taxes, shipping or any kind of advanced reporting.

Payments can be entered manually (for cash or check payments) or through Paypal (in Tiki5), or through CCLite for community currency payments in Tiki6, or using Tiki User Credits in Tiki6.

Payments are not associated to any user. Each payment is standalone and can be paid by anyone, provided they can view it. Visibility is managed through permissions. Provided a direct link to a payment, anyone can view and pay the amount, which is useful, for example, to forward an invoice to a manager.

Although still in development, the payment mechanism allows to register actions to be performed when the payment is completed, allowing other components in Tiki to request payments and act on them.

Membership Management

Payments can be combined with PluginMemberPayment and group expiry to automatically subscribe members to a group or extend their membership upon payment.

Here are the steps to have a monthly membership on a site:
  1. Create a Premium Members group and set-up the permissions so the content can only be visible to members of this group.
  2. Set the expiry of the group to 30 days.
  3. Set-up your paypal account information.
  4. Create a subscription/payment page containing: {memberpayment group=Premium Members price=10}.

The payment plugin will require validation to prevent anyone from creating discount prices for the membership. The plugin will allow the visitor to pay 10$ per 30 days per user for a selected list of users for a selected amount of periods.

Upon payment confirmation by Paypal IPN or manual payment entry by a staff member (assuming check or cash payment), the memberships will be extended.

Cart

An initial support for a shopping cart was also added. The cart feature is composed of a module to display the cart content and proceed to check-out and a wiki plugin to add items to the cart. The plugin must specify the information about the product purchased.

Once products are added and check-out is made, a payment request is recorded and the invoice is presented to the user. All handling of the cart's content by the site's owner is manual.

The cart does not calculate taxes or shipping costs. It only sums the total.

Development

The Payment API is built to be initialized in code and to have behaviors to be triggered on confirmation. For custom usage or further deployment in Tiki (member management is one use case), see Payment.

Some tips about how it works: https://www.paypal.com/en_US/ebook/PP_OrderManagement_IntegrationGuide/ipn.html

Notes

  • Use three letter currency codes
  • If the returnurl after paypal payment is not working, try to set a returnurl in your paypal account (edit profile -> selling preferences -> website payment preference -> auto return on + enter an url) This url will be overwritten by the plugin. So do not worry about the value.


Files/URLs

tiki-admin.php?page=payment
tiki-payment.php


Alias


Contributors to this page: Marc Laporte9146 points  , Nelson810 points  , xavidp1213 points  , sylvie7387 points  , xavi67984 points  and Louis-Philippe Huberdeau1046 points  .
Page last modified on Thursday 15 September, 2011 22:31:37 UTC by Marc Laporte9146 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki