Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Payments and Payment Gateway / APIs /

This is a forum for discussing SilverStripe can-do payments and their APIs / Gateways.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Configuring Other Payment Gateways


Go to End


2 Posts   3746 Views

Avatar
Bambii7

Community Member, 254 Posts

6 July 2010 at 9:07pm

Hi all does any one know of a link to documentation on the payment module? I was trying to test out its PayPalPayment class.

From the looks of things I add a custom "processPayPalPayment" to a decorator object like in the Payable demo.
Any help or hints would be appreciated.

Avatar
Bambii7

Community Member, 254 Posts

3 August 2010 at 2:03pm

Nice anchored linking....... can't tell if you're actually interested PayPalPayments or just interested in linking to your site.....
I'm using the latest Payment module with these config settings in mysite/_config.php

Payment::set_supported_methods(array(
'ChequePayment' => 'Cheque Or Pay On Site',
'PayPalPayment' => 'PayPal (Credit Card)'
));
if(Director::isLive()) {
//forcing paypal sandbox even in live mode uncomment the line below "set_account_email" for live use
PayPalPayment::set_test_mode('mysandboxemail');
//PayPalPayment::set_account_email('myactualpaypalemail');
} else {
// configure test account
PayPalPayment::set_test_mode('mysandboxemail');
}
Director::set_environment_type("dev");

Order::set_email('myemail');
Order::set_subject('New Order');

ProductGroup::set_page_length(21); //set the default number of products to show on each product group page
Product_Image::set_thumbnail_size(100,100); // set the width and height of product thumbnails
Product_Image::set_content_image_width(300); // allows you to set the width of Product page images
Product_Image::set_large_image_width(500);

//choose overview fields for Report admin
Order::set_table_overview_fields(array(
'ID' => 'Order No',
'Created' => 'Created',
'Member.FirstName' => 'First Name',
'Member.Surname' => 'Surname',
'Total' => 'Total',
'Status' => 'Status'
));
SimpleShippingModifier::set_default_charge(20);
SimpleShippingModifier::set_charges_for_countries(array(
'NZ' => 10,
));