From: <txm...@us...> - 2013-03-23 12:44:36
|
Revision: 11292 http://sourceforge.net/p/xoops/svn/11292 Author: txmodxoops Date: 2013-03-23 12:44:31 +0000 (Sat, 23 Mar 2013) Log Message: ----------- Separated code in single files admin gui 2.5.5 Added Paths: ----------- XoopsModules/xpayment/branches/timgno/ XoopsModules/xpayment/branches/timgno/xpayment/ XoopsModules/xpayment/branches/timgno/xpayment/accounts.php XoopsModules/xpayment/branches/timgno/xpayment/admin/ XoopsModules/xpayment/branches/timgno/xpayment/admin/about.php XoopsModules/xpayment/branches/timgno/xpayment/admin/discounts.php XoopsModules/xpayment/branches/timgno/xpayment/admin/gateways.php XoopsModules/xpayment/branches/timgno/xpayment/admin/groups.php XoopsModules/xpayment/branches/timgno/xpayment/admin/header.php XoopsModules/xpayment/branches/timgno/xpayment/admin/index.html XoopsModules/xpayment/branches/timgno/xpayment/admin/index.php XoopsModules/xpayment/branches/timgno/xpayment/admin/invoices.php XoopsModules/xpayment/branches/timgno/xpayment/admin/menu.php XoopsModules/xpayment/branches/timgno/xpayment/admin/permissions.php XoopsModules/xpayment/branches/timgno/xpayment/admin/tax.php XoopsModules/xpayment/branches/timgno/xpayment/admin/transactions.php XoopsModules/xpayment/branches/timgno/xpayment/broker.php XoopsModules/xpayment/branches/timgno/xpayment/cancel.php XoopsModules/xpayment/branches/timgno/xpayment/class/ XoopsModules/xpayment/branches/timgno/xpayment/class/autotax.php XoopsModules/xpayment/branches/timgno/xpayment/class/discounts.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/ccbill/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/ccbill/ccbill.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/ccbill/gateway_info.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/ccbill/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/gateway_info.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/google.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlecart.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googleitem.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlelog.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlemerchantcalculations.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlenotification.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlenotificationhistory.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlepoll.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlerequest.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googleresponse.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googleresult.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googleshipping.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googlesubscription.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/googletax.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/htmlSignatureGen.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/xml-processing/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/xml-processing/gc_xmlbuilder.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/google/xml-processing/gc_xmlparser.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/paypal/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/paypal/gateway_info.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/paypal/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/paypal/paypal.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/twocheckout/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/twocheckout/gateway_info.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/twocheckout/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/twocheckout/twocheckout.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/zombaio/ XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/zombaio/gateway_info.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/zombaio/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/gateway/zombaio/zombaio.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateways.php XoopsModules/xpayment/branches/timgno/xpayment/class/gateways_options.php XoopsModules/xpayment/branches/timgno/xpayment/class/groups.php XoopsModules/xpayment/branches/timgno/xpayment/class/index.html XoopsModules/xpayment/branches/timgno/xpayment/class/invoice.php XoopsModules/xpayment/branches/timgno/xpayment/class/invoice_items.php XoopsModules/xpayment/branches/timgno/xpayment/class/invoice_transactions.php XoopsModules/xpayment/branches/timgno/xpayment/class/ip2locationlite.class.php XoopsModules/xpayment/branches/timgno/xpayment/crons/ XoopsModules/xpayment/branches/timgno/xpayment/crons/actions.php XoopsModules/xpayment/branches/timgno/xpayment/docs/ XoopsModules/xpayment/branches/timgno/xpayment/docs/changelog.txt XoopsModules/xpayment/branches/timgno/xpayment/docs/credits.txt XoopsModules/xpayment/branches/timgno/xpayment/docs/index.html XoopsModules/xpayment/branches/timgno/xpayment/docs/install.txt XoopsModules/xpayment/branches/timgno/xpayment/docs/lang_diff.txt XoopsModules/xpayment/branches/timgno/xpayment/docs/licence.txt XoopsModules/xpayment/branches/timgno/xpayment/docs/readme.txt XoopsModules/xpayment/branches/timgno/xpayment/dojsongateway.php XoopsModules/xpayment/branches/timgno/xpayment/header.php XoopsModules/xpayment/branches/timgno/xpayment/images/ XoopsModules/xpayment/branches/timgno/xpayment/images/icons/ XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/ XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/index.html XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.discounts.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.gateways.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.groups.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.invoices.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.permissions.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.taxes.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/16/xpayment.transactions.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/ XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/index.html XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.discounts.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.gateways.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.groups.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.invoices.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.permissions.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.taxes.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/32/xpayment.transactions.png XoopsModules/xpayment/branches/timgno/xpayment/images/icons/index.html XoopsModules/xpayment/branches/timgno/xpayment/images/index.html XoopsModules/xpayment/branches/timgno/xpayment/images/pdf.png XoopsModules/xpayment/branches/timgno/xpayment/images/xpayment_slogo.png XoopsModules/xpayment/branches/timgno/xpayment/include/ XoopsModules/xpayment/branches/timgno/xpayment/include/JSON.php XoopsModules/xpayment/branches/timgno/xpayment/include/formselectgateway.php XoopsModules/xpayment/branches/timgno/xpayment/include/formselectinvoicemode.php XoopsModules/xpayment/branches/timgno/xpayment/include/formselectinvoiceremittion.php XoopsModules/xpayment/branches/timgno/xpayment/include/formselectplugin.php XoopsModules/xpayment/branches/timgno/xpayment/include/formselectuser.php XoopsModules/xpayment/branches/timgno/xpayment/include/index.html XoopsModules/xpayment/branches/timgno/xpayment/include/install.php XoopsModules/xpayment/branches/timgno/xpayment/include/onupdate.php XoopsModules/xpayment/branches/timgno/xpayment/include/uninstall.php XoopsModules/xpayment/branches/timgno/xpayment/include/xpayment.forms.php XoopsModules/xpayment/branches/timgno/xpayment/include/xpayment.functions.php XoopsModules/xpayment/branches/timgno/xpayment/include/xpayment.objects.php XoopsModules/xpayment/branches/timgno/xpayment/index.php XoopsModules/xpayment/branches/timgno/xpayment/ipn.php XoopsModules/xpayment/branches/timgno/xpayment/js/ XoopsModules/xpayment/branches/timgno/xpayment/js/index.html XoopsModules/xpayment/branches/timgno/xpayment/js/jquery.json.gateway.js XoopsModules/xpayment/branches/timgno/xpayment/language/ XoopsModules/xpayment/branches/timgno/xpayment/language/english/ XoopsModules/xpayment/branches/timgno/xpayment/language/english/admin.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/block.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/ccbill.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/google.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/help/ XoopsModules/xpayment/branches/timgno/xpayment/language/english/help/help.html XoopsModules/xpayment/branches/timgno/xpayment/language/english/help/index.html XoopsModules/xpayment/branches/timgno/xpayment/language/english/index.html XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/ XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/index.html XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_discount_more.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_discount_new.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_discount_reminder.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_collect.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_damaged.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_discounted.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_express.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_fraud.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_none.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_purchased.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_refunded.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_settled.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_canceled_undelivered.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_created.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_collect.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_damaged.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_discounted.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_express.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_fraud.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_none.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_purchased.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_refunded.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_settled.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_paid_undelieved.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_reminder.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_canceled_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_canceled_other.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_canceled_payment.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_canceled_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_canceled_refund.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_paid_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_paid_other.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_paid_payment.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_paid_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_paid_refund.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_unpaid_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_unpaid_other.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_unpaid_payment.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_unpaid_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_transaction_unpaid_refund.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_collect.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_damaged.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_discounted.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_express.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_fraud.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_none.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_notice.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_pending.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_purchased.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_refunded.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_settled.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/mail_templates/xpayment_invoice_unpaid_undelieved.tpl XoopsModules/xpayment/branches/timgno/xpayment/language/english/main.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/modinfo.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/paypal.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/twocheckout.php XoopsModules/xpayment/branches/timgno/xpayment/language/english/zombaio.php XoopsModules/xpayment/branches/timgno/xpayment/language/index.html XoopsModules/xpayment/branches/timgno/xpayment/officers.php XoopsModules/xpayment/branches/timgno/xpayment/pdf.php XoopsModules/xpayment/branches/timgno/xpayment/plugin/ XoopsModules/xpayment/branches/timgno/xpayment/plugin/example.php XoopsModules/xpayment/branches/timgno/xpayment/plugin/xpayment.php XoopsModules/xpayment/branches/timgno/xpayment/return.php XoopsModules/xpayment/branches/timgno/xpayment/sql/ XoopsModules/xpayment/branches/timgno/xpayment/sql/index.html XoopsModules/xpayment/branches/timgno/xpayment/sql/mysql.sql XoopsModules/xpayment/branches/timgno/xpayment/templates/ XoopsModules/xpayment/branches/timgno/xpayment/templates/index.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cancel.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_discounts_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_gateways_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_gateways_options.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_groups.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_groups_edit.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_invoice_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_invoice_view.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_tax_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_transactions_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_cpanel_transactions_view.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_help.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_invoice.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_invoice_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_invoice_view.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_payment.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_payment_pdf.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_return.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_transactions_list.html XoopsModules/xpayment/branches/timgno/xpayment/templates/xpayment_transactions_view.html XoopsModules/xpayment/branches/timgno/xpayment/xoops_version.php Added: XoopsModules/xpayment/branches/timgno/xpayment/accounts.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/accounts.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/accounts.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,241 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.coop/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 1.30.0 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + */ + include('header.php'); + + if (!is_object($GLOBALS['xoopsUser'])) { + redirect_header(XOOPS_URL.'/modules/xpayment/index.php', 3, _NOPERM); + exit(0); + } + + if (!in_array($GLOBALS['xoopsModuleConfig']['accounts'], $GLOBALS['xoopsUser']->getGroups())) { + redirect_header(XOOPS_URL.'/modules/xpayment/index.php', 3, _NOPERM); + exit(0); + } + + xoops_loadLanguage('admin', 'xpayment'); + + switch($_REQUEST['op']) { + default: + case "invoices": + switch ($_REQUEST['fct']) + { + default: + case "list": + $xoopsOption['template_main'] = 'xpayment_invoice_list.html'; + include_once $GLOBALS['xoops']->path( "/header.php" ); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + + $criteria = new CriteriaCompo(new Criteria('accounts_uids', '%"'.$GLOBALS['xoopsUser']->getVar('uid').'"%', 'LIKE')); + + $ttl = $invoice_handler->getCount($criteria); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'created'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'mode','invoicenumber','drawfor','drawto','drawto_email','amount','grand','shipping', + 'handling','weight','weight_unit','tax','currency','items','transactionid','created', + 'updated','actioned','reoccurence','reoccurences','reoccurence_period_days','occurence', + 'previous','occurence_grand','occurence_amount','occurence_tax','occurence_shipping', + 'occurence_handling','occurence_weight','remittion','remittion_settled', + 'donation','comment','user_ip','user_netaddy','user_uid','remitted','due', + 'collect','wait','offline','remittion') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower($key.'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + } + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $invoices = $invoice_handler->getObjects($criteria, true); + foreach($invoices as $iid => $invoice) { + $GLOBALS['xoopsTpl']->append('invoices', $invoice->toArray()); + } + + break; + case 'view': + $xoopsOption['template_main'] = 'xpayment_invoice_view.html'; + include_once $GLOBALS['xoops']->path( "/header.php" ); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + $invoice_items_handler =& xoops_getmodulehandler('invoice_items', 'xpayment'); + + $invoice =& $invoice_handler->get($_GET['iid']); + + $GLOBALS['xoopsTpl']->assign('invoice', $invoice->toArray()); + + if ($invoice->getVar('mode')=='UNPAID') + $GLOBALS['xoopsTpl']->assign('payment_markup', $invoice->getAdminPaymentHtml()); + + if ($invoice->getVar('mode')=='UNPAID'&&($invoice->getVar('remittion')=='COLLECT'||$invoice->getVar('remittion')=='SETTLED')) + $GLOBALS['xoopsTpl']->assign('settle_markup', $invoice->getAdminSettleHtml()); + + $criteria = new Criteria('iid', $invoice->getVar('iid')); + $items = $invoice_items_handler->getObjects($criteria, true); + foreach($items as $iiid => $item) + $GLOBALS['xoopsTpl']->append('items', $item->toArray()); + + + + break; + case 'cancel': + + include_once $GLOBALS['xoops']->path( "/header.php" ); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + if (!isset($_POST['confirm'])) { + xoops_confirm(array('confirm'=>true,'op'=>$_REQUEST['op'],'fct'=>$_REQUEST['fct'],'iid'=>$_REQUEST['iid']), $_SERVER['PHP_SELF'], _XPY_MSG_CONFIRM_CANCEL); + include($GLOBALS['xoops']->path('/footer.php')); + exit(0); + } + + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + $invoice = $invoice_handler->get($_REQUEST['iid']); + $invoice->setVar('mode', 'CANCEL'); + $invoice_handler->insert($invoice); + $invoice->runPlugin(); + redirect_header($_SERVER['PHP_SELF'].'?op=invoices&fct=list', 3, _XPY_MSG_INVOICE_CANCELED); + exit(0); + break; + case 'transaction': + + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + $invoice_transactions_handler =& xoops_getmodulehandler('invoice_transactions', 'xpayment'); + $invoice_transactions = $invoice_transactions_handler->create(); + $invoice = $invoice_handler->get($_REQUEST['iid']); + $invoice_transactions->setVar('transactionid', $_REQUEST['transactionid']); + $invoice_transactions->setVar('iid', $_REQUEST['iid']); + $invoice_transactions->setVar('invoice', $_REQUEST['iid']); + $invoice_transactions->setVar('date', time()); + $invoice_transactions->setVar('email', $GLOBALS['xoopsConfig']['adminmail']); + $invoice_transactions->setVar('gross', $_REQUEST['amount']); + $invoice_transactions->setVar('status', 'Manual'); + $invoice_transactions_handler->insert($invoice_transactions); + $gross = $invoice_transactions_handler->sumOfGross($_REQUEST['iid']); + if ($gross>=$invoice->getVar('grand')) + $invoice->setVar('mode', 'PAID'); + $invoice->setVar('transactionid', $_REQUEST['transactionid']); + $invoice_handler->insert($invoice); + redirect_header($_SERVER['PHP_SELF'].'?op=invoices&fct=list', 3, _XPY_MSG_INVOICE_PAID); + exit(0); + break; + case 'settle': + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + $invoice = $invoice_handler->get($_REQUEST['iid']); + $invoice->setVar('remittion','SETTLED'); + $invoice->setVar('remittion_settled',$_REQUEST['settlement']); + $invoice_handler->insert($invoice); + redirect_header($_SERVER['PHP_SELF'].'?op=invoices&fct=list', 3, _XPY_MSG_INVOICE_SETTLEMENT); + exit(0); + break; + + } + break; + case "transactions": + + switch ($_REQUEST['fct']) + { + default: + case "list": + $xoopsOption['template_main'] = 'xpayment_transactions_list.html'; + include_once $GLOBALS['xoops']->path( "/header.php" ); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + $invoice_transactions_handler =& xoops_getmodulehandler('invoice_transactions', 'xpayment'); + + $ttl = $invoice_transactions_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'date'; + + if ($_GET['iid']==0) { + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + } else { + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&iid='.$_REQUEST['iid'].'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + $criteria = new Criteria('iid',$_REQUEST['iid']); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort($sort); + $criteria->setOrder($order); + + $invoice_handler =& xoops_getmodulehandler('invoice', 'xpayment'); + $invoice =& $invoice_handler->get($_GET['iid']); + $GLOBALS['xoopsTpl']->assign('invoice', $invoice->toArray()); + + } + + $transactions = $invoice_transactions_handler->getObjects($criteria, true); + + foreach($transactions as $tiid => $transaction) { + $GLOBALS['xoopsTpl']->append('transactions', $transaction->toArray()); + } + + if ($_GET['iid']==0) { + foreach (array( 'transactionid','email','invoice','status','date','gross','fee','settle', + 'exchangerate','firstname','lastname','street','city','state','postcode','country', + 'address_status','payer_email','payer_status','gateway', 'plugin') as $id => $key) { + $GLOBALS['xoopsTpl']->assign($key.'_th', '<a href="'.$_SERVER['PHP_SELF'].'?'.'start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + } + } else { + foreach (array( 'transactionid','email','invoice','status','date','gross','fee','settle', + 'exchangerate','firstname','lastname','street','city','state','postcode','country', + 'address_status','payer_email','payer_status','gateway', 'plugin') as $id => $key) { + $GLOBALS['xoopsTpl']->assign($key.'_th', '<a href="'.$_SERVER['PHP_SELF'].'?'.'start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'&iid='.$_REQUEST['iid'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + } + } + + break; + case 'view': + $xoopsOption['template_main'] = 'xpayment_transactions_view.html'; + include_once $GLOBALS['xoops']->path( "/header.php" ); + $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + + $invoice_transactions_handler =& xoops_getmodulehandler('invoice_transactions', 'xpayment'); + $transaction =& $invoice_transactions_handler->get($_GET['tiid']); + $GLOBALS['xoopsTpl']->assign('transaction', $transaction->toArray()); + break; + } + break; + + } + + include($GLOBALS['xoops']->path('/footer.php')); +?> \ No newline at end of file Added: XoopsModules/xpayment/branches/timgno/xpayment/admin/about.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/admin/about.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/admin/about.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,60 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.com.au/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 2.5.5 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + * @version $Id: permissions.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include('header.php'); +$paypalitemno='XPAYMENTABOUT100'; +$aboutAdmin = new ModuleAdmin(); +$about = $aboutAdmin->renderabout($paypalitemno, false); +$donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.com.au/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">', +1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_XPY_AM_XPAYMENT_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>', +2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.com.au/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.com.au/modules/donations/success.php" type="hidden"></form>', 'D'=>'', + 3 => '', + 4 => '<!-- Start Form Validation JavaScript //--> +<script type="text/javascript"> +<!--// +function xoopsFormValidate_donation() { var myform = window.document.donation; +var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true; +} +//--></script> +<!-- End Form Validation JavaScript //-->'); +$paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">', + 1 => '<input name="cmd" value="_s-xclick" type="hidden">', + 2 => '<input name="hosted_button_id" value="%s" type="hidden">', + 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">', + 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image">', + 5 => '</form>'); +for($key=0;$key<=4;$key++) { + switch ($key) { + case 2: + $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['xpaymentModule']->getVar('dirname')), strtoupper($GLOBALS['xpaymentModule']->getVar('dirname')). ' '.$GLOBALS['xpaymentModule']->getVar('name')); + break; + } +} + +$istart = strpos($about, ($paypalform[0]), 1); +$iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1; +echo (substr($about, 0, $istart-1)); +echo implode("\n", $donationform); +echo (substr($about, $iend+1, strlen($about)-$iend-1)); +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xpayment/branches/timgno/xpayment/admin/discounts.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/admin/discounts.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/admin/discounts.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,117 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.com.au/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 2.5.5 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + * @version $Id: permissions.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include('header.php'); + +$GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + +xoops_loadLanguage('admin', 'xpayment'); +echo $adminMenu->addNavigation('discounts.php'); +switch($_REQUEST['op']) +{ + default: + case "list": + $discount_handler =& xoops_getmodulehandler('discounts', 'xpayment'); + + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'created'; + $filter = !empty($_REQUEST['filter'])?$_REQUEST['filter']:'1,1'; + + $criteria = $discount_handler->getFilterCriteria($filter); + $ttl = $discount_handler->getCount($criteria); + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&filter='.$filter.'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'did','uid','code','email','validtill','redeems','discount','redeemed', + 'iids','`created`','updated') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower($key.'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $discount_handler->getFilterForm($filter, $key, $sort, $fct)); + } + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $GLOBALS['xoopsTpl']->assign('start', $start); + $GLOBALS['xoopsTpl']->assign('limit', $limit); + $GLOBALS['xoopsTpl']->assign('sort', $sort); + $GLOBALS['xoopsTpl']->assign('order', $order); + $GLOBALS['xoopsTpl']->assign('filter', $filter); + + $GLOBALS['xoopsTpl']->assign('form', xpayment_admincreatediscounts()); + + $discounts = $discount_handler->getObjects($criteria, true); + foreach($discounts as $iid => $discount) { + $GLOBALS['xoopsTpl']->append('discounts', $discount->toArray()); + } + + $GLOBALS['xoopsTpl']->display('db:xpayment_cpanel_discounts_list.html'); + break; + case "create": + extract($_POST); + if (intval($redeems)==0) { + redirect_header($_SERVER['PHP_SELF'].'?op=discounts&fct=list&sort='.$sort.'&order='.$order.'&start='.$start.'&limit='.$limit.'&filter='.$filter, 3, _XPY_MSG_DISCOUNT_NOREDEEMS_SPECIFIED); + exit(0); + } + if (intval($discount)==0) { + redirect_header($_SERVER['PHP_SELF'].'?op=discounts&fct=list&sort='.$sort.'&order='.$order.'&start='.$start.'&limit='.$limit.'&filter='.$filter, 3, _XPY_MSG_DISCOUNT_NODISCOUNT_SPECIFIED); + exit(0); + } + $created=0; + $reminders=0; + $prefix = str_replace(' ', '', $prefix); + $discount_handler =& xoops_getmodulehandler('discounts', 'xpayment'); + foreach(explode("|", $emails) as $email) { + if(eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email)) { + if (!$dis = $discount_handler->getByEmail($email)) { + if ($discount_handler->sendDiscountCode($email, ($validtill_infinte==true?0:strtotime($validtill['date'])+$validtill['time']), intval($redeems), (float)$discount, $prefix, 0)) + $created++; + } else { + if ($dis->sendReminderEmail()) + $reminders++; + } + } + } + if ($scan==true) { + foreach($groups as $group) { + foreach($discount_handler->getUsersByGroup($group, ($logon==true?strtotime($logon_datetime['date'])+$logon_datetime['time']:0), ($since==true?strtotime($since_datetime['date'])+$since_datetime['time']:0), true) as $user) { + if (!$dis = $discount_handler->getByEmail($user->getVar('email'))) { + if ($discount_handler->sendDiscountCode($user->getVar('email'), ($validtill_infinte==true?0:strtotime($validtill['date'])+$validtill['time']), intval($redeems), (float)$discount, $prefix, $user->getVar('uid'))) + $created++; + } else { + if ($dis->sendReminderEmail()) + $reminders++; + } + } + } + } + redirect_header($_SERVER['PHP_SELF'].'?op=discounts&fct=list&sort='.$sort.'&order='.$order.'&start='.$start.'&limit='.$limit.'&filter='.$filter, 3, sprintf(_XPY_MSG_DISCOUNT_CREATED_REMINDED, $created, $reminders)); + exit(0); + break; +} +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xpayment/branches/timgno/xpayment/admin/gateways.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/admin/gateways.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/admin/gateways.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,141 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.com.au/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 2.5.5 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + * @version $Id: permissions.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include('header.php'); + +$GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + +xoops_loadLanguage('admin', 'xpayment'); +echo $adminMenu->addNavigation('gateways.php'); +switch($_REQUEST['op']) +{ + case "list": + default: + $gateways_handler =& xoops_getmodulehandler('gateways', 'xpayment'); + $gateway = $gateways_handler->get($_REQUEST['gid']); + if (is_object($gateway)) + include_once($GLOBALS['xoops']->path('/modules/xpayment/class/gateway/'.$gateway->getVar('class').'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.$gateway->getVar('class').'.php')); + + $ttl = $gateways_handler->getCount(NULL); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'name'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'name','description','author','testmode') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower($key.'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + } + + $criteria = new Criteria('1','1'); + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $gateways = $gateways_handler->getObjects($criteria, true); + foreach($gateways as $gid => $gateway) { + + xoops_loadLanguage($gateway->getVar('class'), 'xpayment'); + + $ret = $gateway->toArray(); + $ret['name'] = (defined($ret['name'])?constant($ret['name']):$ret['name']); + $ret['description'] = (defined($ret['description'])?constant($ret['description']):$ret['description']); + $ret['author'] = (defined($ret['author'])?constant($ret['author']):$ret['author']); + $GLOBALS['xoopsTpl']->append('gateways', $ret); + $installed[$gateway->getVar('class')] = $gateway->getVar('class'); + } + + xoops_load('XoopsLists'); + $gateways = XoopsLists::getDirListAsArray($GLOBALS['xoops']->path('/modules/xpayment/class/gateway/')); + + foreach($gateways as $class) { + if (!in_array($class, $installed)) { + include($GLOBALS['xoops']->path('/modules/xpayment/class/gateway/'.$class.'/gateway_info.php')); + if (!empty($gateway)) { + $ret = $gateway; + $ret['name'] = (defined($ret['name'])?constant($ret['name']):$ret['name']); + $ret['description'] = (defined($ret['description'])?constant($ret['description']):$ret['description']); + $ret['author'] = (defined($ret['author'])?constant($ret['author']):$ret['author']); + $GLOBALS['xoopsTpl']->append('uninstalled', $ret); + } + } + } + $GLOBALS['xoopsTpl']->display('db:xpayment_cpanel_gateways_list.html'); + break; + + case "options": + $gateways_options_handler =& xoops_getmodulehandler('gateways_options', 'xpayment'); + $gateways_handler =& xoops_getmodulehandler('gateways', 'xpayment'); + $gateway = $gateways_handler->get($_GET['gid']); + + xoops_loadLanguage($gateway->getVar('class'), 'xpayment'); + + $criteria = new Criteria('gid',$_GET['gid']); + + $options = $gateways_options_handler->getObjects($criteria, true); + foreach($options as $goid => $option) { + $ret=$option->toArray(); + $ret['name'] = (defined($ret['name'])?constant($ret['name']):$ret['name']); + $GLOBALS['xoopsTpl']->append('options', $ret); + } + loadModuleAdminMenu(3); + $GLOBALS['xoopsTpl']->display('db:xpayment_cpanel_gateways_options.html'); + break; + + case 'settestmode': + $gateways_handler =& xoops_getmodulehandler('gateways', 'xpayment'); + $gateways = $gateways_handler->getObjects(NULL, true); + + foreach($gateways as $gid => $gateway) { + $gateway->setVar('testmode', ($_POST['testmode'][$gid]==true?true:false)); + $gateways_handler->insert($gateway); + } + redirect_header($_SERVER['PHP_SELF'].'?op=gateways&fct=list', 3, _XPY_MSG_TESTMODES_SAVED); + exit(0); + break; + case 'setoptions': + $gateways_options_handler =& xoops_getmodulehandler('gateways_options', 'xpayment'); + foreach($_POST['value'] as $goid => $value) { + $option =$gateways_options_handler->get($goid); + $option->setVar('value', $value); + $gateways_options_handler->insert($option); + } + redirect_header($_SERVER['PHP_SELF'].'?op=gateways&fct=list', 3, _XPY_MSG_OPTIONS_SAVED); + exit(0); + break; + case 'update': + xpayment_update_gateway($_GET['class']); + redirect_header($_SERVER['PHP_SELF'].'?op=gateways&fct=list', 3, _XPY_MSG_GATEWAY_UPDATED); + exit(0); + break; + case 'install': + xpayment_install_gateway($_GET['class']); + redirect_header($_SERVER['PHP_SELF'].'?op=gateways&fct=list', 3, _XPY_MSG_GATEWAY_INSTALL); + exit(0); + break; +} +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xpayment/branches/timgno/xpayment/admin/groups.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/admin/groups.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/admin/groups.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,166 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.com.au/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 2.5.5 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + * @version $Id: permissions.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include('header.php'); + +$GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']); + +xoops_loadLanguage('admin', 'xpayment'); +echo $adminMenu->addNavigation('groups.php'); +switch($_REQUEST['op']) +{ + case "brokers": + case "accounts": + case "officers": + $groups_handler =& xoops_getmodulehandler('groups', 'xpayment'); + + switch ($_REQUEST['fct']) + { + case "brokers": + $criteria = new Criteria('mode', 'BROKERS'); + break; + case "accounts": + $criteria = new Criteria('mode', 'ACCOUNTS'); + break; + case "officers": + $criteria = new Criteria('mode', 'OFFICERS'); + break; + } + $ttl = $groups_handler->getCount($criteria); + $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30; + $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0; + $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC'; + $sort = !empty($_REQUEST['sort'])?$_REQUEST['sort']:'plugin'; + + $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct']); + $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav()); + + foreach (array( 'rid','mode','plugin','uid','limit','maximum','minimum') as $id => $key) { + $GLOBALS['xoopsTpl']->assign(strtolower($key.'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$start.'&limit='.$limit.'&sort='.$key.'&order='.(($key==$sort)?($order=='ASC'?'DESC':'ASC'):$order).'&op='.$_REQUEST['op'].'&fct='.$_REQUEST['fct'].'">'.(defined('_XPY_AM_TH_'.strtoupper($key))?constant('_XPY_AM_TH_'.strtoupper($key)):'_XPY_AM_TH_'.strtoupper($key)).'</a>'); + } + + $criteria->setStart($start); + $criteria->setLimit($limit); + $criteria->setSort('`'.$sort.'`'); + $criteria->setOrder($order); + + $groups = $groups_handler->getObjects($criteria, true); + foreach($groups as $rid => $group) { + $GLOBALS['xoopsTpl']->append('groups', $group->toArray()); + } + + $module_handler =& xoops_gethandler('module'); + $config_handler =& xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xpayment'); + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + + $GLOBALS['xoopsTpl']->assign('form', xpayment_adminrule(0, $xoConfig[$_REQUEST['fct']])); + + $opform = new XoopsSimpleForm(_XPY_AM_GROUP_FCT, 'actionform', 'index.php', "get"); + $op_select = new XoopsFormSelect("", 'fct', $_REQUEST['fct']); + $op_select->setExtra('onchange="document.forms.actionform.submit()"'); + $op_select->addOptionArray(array( + "brokers"=>_XPY_AM_GROUP_BROKERS, + "accounts"=>_XPY_AM_GROUP_ACCOUNTS, + "officers"=>_XPY_AM_GROUP_OFFICERS + )); + $opform->addElement($op_select); + $opform->addElement(new XoopsFormHidden('op', 'groups')); + $GLOBALS['xoopsTpl']->assign('selectform', $opform->render()); + + $GLOBALS['xoopsTpl']->display('db:xpayment_cpanel_groups.html'); + break; + case 'save': + $groups_handler =& xoops_getmodulehandler('groups', 'xpayment'); + if ($_REQUEST['rid']==0) + $group = $groups_handler->create(); + else + $group = $groups_handler->get($_REQUEST['rid']); + + $group->setVars($_POST); + + switch ($_REQUEST['action']) + { + case "brokers": + $group->setVar('mode', 'BROKERS'); + $fct = $_REQUEST['action']; + break; + case "accounts": + $group->setVar('mode', 'ACCOUNTS'); + $fct = $_REQUEST['action']; + break; + case "officers": + $group->setVar('mode', 'OFFICERS'); + $fct = $_REQUEST['action']; + break; + default: + $fct = 'brokers'; + break; + } + + $groups_handler->insert($group, true); + redirect_header($_SERVER['PHP_SELF'].'?op=groups&fct='.$fct, 3, _XPY_MSG_RULE_SAVED); + break; + + case 'edit': + $groups_handler =& xoops_getmodulehandler('groups', 'xpayment'); + if ($_REQUEST['rid']==0) + $group = $groups_handler->create(); + else + $group = $groups_handler->get($_REQUEST['rid']); + + $module_handler =& xoops_gethandler('module'); + $config_handler =& xoops_gethandler('config'); + $xoMod = $module_handler->getByDirname('xpayment'); + $xoConfig = $config_handler->getConfigList($xoMod->getVar('mid')); + + switch($group->getVar('mode')){ + case "BROKERS": + $groupid = $xoConfig['brokers']; + break; + case "ACCOUNTS": + $groupid = $xoConfig['accounts']; + break; + case "OFFICERS": + $groupid = $xoConfig['officers']; + break; + } + $GLOBALS['xoopsTpl']->assign('form', xpayment_adminrule($_REQUEST['rid'], $groupid)); + $GLOBALS['xoopsTpl']->display('db:xpayment_cpanel_groups_edit.html'); + break; + + case 'delete': + if (!isset($_POST['confirm'])) { + xoops_confirm(array('confirm'=>true,'op'=>$_REQUEST['op'],'fct'=>$_REQUEST['fct'],'rid'=>$_REQUEST['rid']), $_SERVER['PHP_SELF'], _XPY_MSG_CONFIRM_DELETE); + xoops_cp_footer(); + exit(0); + } + $groups_handler =& xoops_getmodulehandler('groups', 'xpayment'); + $group = $groups_handler->get($_REQUEST['rid']); + $groups_handler->delete($group); + redirect_header($_SERVER['PHP_SELF'].'?op=groups&fct=brokers', 3, _XPY_MSG_RULE_DELETED); + exit(0); + break; +} +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/xpayment/branches/timgno/xpayment/admin/header.php =================================================================== --- XoopsModules/xpayment/branches/timgno/xpayment/admin/header.php (rev 0) +++ XoopsModules/xpayment/branches/timgno/xpayment/admin/header.php 2013-03-23 12:44:31 UTC (rev 11292) @@ -0,0 +1,96 @@ +<?php +/** + * Invoice Transaction Gateway with Modular Plugin set + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright Chronolabs Co-Op http://www.chronolabs.coop/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package xpayment + * @since 2.5.5 + * @author Simon Roberts <si...@ch...> + * @translation Erol Konik <ap...@ap...> + * @translation Mariane <mar...@ho...> + * @translation Voltan <vo...@xo...> + * @translation Ezsky <ezs...@gm...> + * @translation Richardo Costa <lus...@gm...> + * @translation Kris_fr <kr...@fr...> + * @version $Id: permissions.php 11084 2013-02-23 15:44:20Z timgno $ + */ +include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php'; +include_once XOOPS_ROOT_PATH . '/include/cp_header.php'; + +if (!defined('_CHARSET')) + define ("_CHARSET","UTF-8"); +if (!defined('_CHARSET_ISO')) + define ("_CHARSET_ISO","ISO-8859-1"); + +$GLOBALS['myts'] = MyTextSanitizer::getInstance(); + +$module_handler = xoops_gethandler('module'); +$config_handler = xoops_gethandler('config'); +$GLOBALS['xpaymentModule'] = $module_handler->getByDirname(... [truncated message content] |
From: <wis...@us...> - 2015-10-13 21:07:40
|
Revision: 13161 http://sourceforge.net/p/xoops/svn/13161 Author: wishcraft Date: 2015-10-13 21:07:36 +0000 (Tue, 13 Oct 2015) Log Message: ----------- PayPal REST API - XPayment Gateway - Not Completely Tested Added Paths: ----------- XoopsModules/xpayment/branches/wishcraft/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Address.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Agreement.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementDetails.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementStateDescriptor.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransaction.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransactions.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AlternatePayment.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Amount.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Authorization.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BankAccount.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BankAccountsList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BankToken.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BaseAddress.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Billing.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BillingAgreementToken.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/BillingInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CancelNotification.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Capture.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CarrierAccount.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CarrierAccountToken.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CartBase.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ChargeModel.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Cost.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CountryCode.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreateProfileResponse.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Credit.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreditCard.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreditCardHistory.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreditCardList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreditCardToken.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CreditFinancingOffered.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Currency.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CurrencyConversion.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/CustomAmount.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Details.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Error.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ErrorDetails.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ExtendedBankAccount.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ExternalFunding.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FlowConfig.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FmfDetails.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FundingDetail.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FundingInstrument.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FundingOption.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FundingSource.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/FuturePayment.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/HyperSchema.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Image.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Incentive.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InputFields.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InstallmentInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InstallmentOption.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Invoice.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InvoiceAddress.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InvoiceItem.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/InvoiceSearchResponse.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Item.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ItemList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Links.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Measurement.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/MerchantInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/MerchantPreferences.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Metadata.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/NameValuePair.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Notification.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OpenIdAddress.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OpenIdError.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OpenIdSession.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OpenIdTokeninfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OpenIdUserinfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Order.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/OverrideChargeModel.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Patch.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PatchRequest.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Payee.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Payer.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayerInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Payment.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentCard.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentCardToken.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentDefinition.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentDetail.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentExecution.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentHistory.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentInstruction.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentOptions.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PaymentTerm.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Payout.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayoutBatch.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayoutBatchHeader.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayoutItem.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayoutItemDetails.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PayoutSenderBatchHeader.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Phone.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Plan.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PlanList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PotentialPayerInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Presentation.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/PrivateLabelCard.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ProcessorResponse.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/RecipientBankingInstruction.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/RedirectUrls.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Refund.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/RefundDetail.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/RelatedResources.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Sale.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Search.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ShippingAddress.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ShippingCost.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/ShippingInfo.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Tax.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Terms.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Transaction.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/TransactionBase.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Transactions.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebProfile.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Webhook.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebhookEvent.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebhookEventList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebhookEventType.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebhookEventTypeList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/WebhookList.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Auth/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Auth/OAuthTokenCredential.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Cache/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Cache/AuthorizationCache.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/ArrayUtil.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/PayPalModel.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/PayPalResourceModel.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/PayPalUserAgent.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Common/ReflectionUtil.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Converter/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Converter/FormatConverter.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalConfigManager.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalConstants.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalCredentialManager.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalHttpConfig.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalHttpConnection.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalLoggingLevel.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/PayPalLoggingManager.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Core/cacert.pem XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Exception/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Exception/PayPalConfigurationException.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Exception/PayPalConnectionException.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Exception/PayPalInvalidCredentialException.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Exception/PayPalMissingCredentialException.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Handler/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Handler/IPayPalHandler.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Handler/OauthHandler.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Handler/RestHandler.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Rest/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Rest/ApiContext.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Rest/IResource.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Security/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Security/Cipher.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Transport/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Transport/PayPalRestCall.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Validation/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Validation/ArgumentValidator.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Validation/JsonValidator.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Validation/NumericValidator.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Validation/UrlValidator.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/common.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/gateway_info.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/index.html XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/paypalapi.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/language/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/language/english/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/language/english/paypalapi.php XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/language/index.html XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/preloads/ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/preloads/paypalapi.php Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Address.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Address.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Address.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,39 @@ +<?php + +namespace PayPal\Api; + +/** + * Class Address + * + * Base Address object used as billing address in a payment or extended for Shipping Address. + * + * @package PayPal\Api + * + * @property string phone + */ +class Address extends BaseAddress +{ + /** + * Phone number in E.123 format. + * + * @param string $phone + * + * @return $this + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + + /** + * Phone number in E.123 format. + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + +} Property changes on: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Address.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Agreement.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Agreement.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Agreement.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,647 @@ +<?php + +namespace PayPal\Api; + +use PayPal\Common\PayPalResourceModel; +use PayPal\Core\PayPalConstants; +use PayPal\Rest\ApiContext; +use PayPal\Transport\PayPalRestCall; +use PayPal\Validation\ArgumentValidator; + +/** + * Class Agreement + * + * A resource representing an agreement. + * + * @package PayPal\Api + * + * @property string id + * @property string state + * @property string name + * @property string description + * @property string start_date + * @property \PayPal\Api\Payer payer + * @property \PayPal\Api\Address shipping_address + * @property \PayPal\Api\MerchantPreferences override_merchant_preferences + * @property \PayPal\Api\OverrideChargeModel[] override_charge_models + * @property \PayPal\Api\Plan plan + * @property string create_time + * @property string update_time + * @property \PayPal\Api\AgreementDetails agreement_details + */ +class Agreement extends PayPalResourceModel +{ + /** + * Identifier of the agreement. + * + * @param string $id + * + * @return $this + */ + public function setId($id) + { + $this->id = $id; + return $this; + } + + /** + * Identifier of the agreement. + * + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * State of the agreement. + * + * @param string $state + * + * @return $this + */ + public function setState($state) + { + $this->state = $state; + return $this; + } + + /** + * State of the agreement. + * + * @return string + */ + public function getState() + { + return $this->state; + } + + /** + * Name of the agreement. + * + * @param string $name + * + * @return $this + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + + /** + * Name of the agreement. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Description of the agreement. + * + * @param string $description + * + * @return $this + */ + public function setDescription($description) + { + $this->description = $description; + return $this; + } + + /** + * Description of the agreement. + * + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @param string $start_date + * + * @return $this + */ + public function setStartDate($start_date) + { + $this->start_date = $start_date; + return $this; + } + + /** + * Start date of the agreement. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @return string + */ + public function getStartDate() + { + return $this->start_date; + } + + /** + * Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL. + * + * @param \PayPal\Api\Payer $payer + * + * @return $this + */ + public function setPayer($payer) + { + $this->payer = $payer; + return $this; + } + + /** + * Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL. + * + * @return \PayPal\Api\Payer + */ + public function getPayer() + { + return $this->payer; + } + + /** + * Shipping address object of the agreement, which should be provided if it is different from the default address. + * + * @param \PayPal\Api\Address $shipping_address + * + * @return $this + */ + public function setShippingAddress($shipping_address) + { + $this->shipping_address = $shipping_address; + return $this; + } + + /** + * Shipping address object of the agreement, which should be provided if it is different from the default address. + * + * @return \PayPal\Api\Address + */ + public function getShippingAddress() + { + return $this->shipping_address; + } + + /** + * Default merchant preferences from the billing plan are used, unless override preferences are provided here. + * + * @param \PayPal\Api\MerchantPreferences $override_merchant_preferences + * + * @return $this + */ + public function setOverrideMerchantPreferences($override_merchant_preferences) + { + $this->override_merchant_preferences = $override_merchant_preferences; + return $this; + } + + /** + * Default merchant preferences from the billing plan are used, unless override preferences are provided here. + * + * @return \PayPal\Api\MerchantPreferences + */ + public function getOverrideMerchantPreferences() + { + return $this->override_merchant_preferences; + } + + /** + * Array of override_charge_model for this agreement if needed to change the default models from the billing plan. + * + * @param \PayPal\Api\OverrideChargeModel[] $override_charge_models + * + * @return $this + */ + public function setOverrideChargeModels($override_charge_models) + { + $this->override_charge_models = $override_charge_models; + return $this; + } + + /** + * Array of override_charge_model for this agreement if needed to change the default models from the billing plan. + * + * @return \PayPal\Api\OverrideChargeModel[] + */ + public function getOverrideChargeModels() + { + return $this->override_charge_models; + } + + /** + * Append OverrideChargeModels to the list. + * + * @param \PayPal\Api\OverrideChargeModel $overrideChargeModel + * @return $this + */ + public function addOverrideChargeModel($overrideChargeModel) + { + if (!$this->getOverrideChargeModels()) { + return $this->setOverrideChargeModels(array($overrideChargeModel)); + } else { + return $this->setOverrideChargeModels( + array_merge($this->getOverrideChargeModels(), array($overrideChargeModel)) + ); + } + } + + /** + * Remove OverrideChargeModels from the list. + * + * @param \PayPal\Api\OverrideChargeModel $overrideChargeModel + * @return $this + */ + public function removeOverrideChargeModel($overrideChargeModel) + { + return $this->setOverrideChargeModels( + array_diff($this->getOverrideChargeModels(), array($overrideChargeModel)) + ); + } + + /** + * Plan details for this agreement. + * + * @param \PayPal\Api\Plan $plan + * + * @return $this + */ + public function setPlan($plan) + { + $this->plan = $plan; + return $this; + } + + /** + * Plan details for this agreement. + * + * @return \PayPal\Api\Plan + */ + public function getPlan() + { + return $this->plan; + } + + /** + * Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @param string $create_time + * + * @return $this + */ + public function setCreateTime($create_time) + { + $this->create_time = $create_time; + return $this; + } + + /** + * Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @return string + */ + public function getCreateTime() + { + return $this->create_time; + } + + /** + * Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @param string $update_time + * + * @return $this + */ + public function setUpdateTime($update_time) + { + $this->update_time = $update_time; + return $this; + } + + /** + * Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6). + * + * @return string + */ + public function getUpdateTime() + { + return $this->update_time; + } + + /** + * Agreement Details + * + * @param \PayPal\Api\AgreementDetails $agreement_details + * + * @return $this + */ + public function setAgreementDetails($agreement_details) + { + $this->agreement_details = $agreement_details; + return $this; + } + + /** + * Agreement Details + * + * @return \PayPal\Api\AgreementDetails + */ + public function getAgreementDetails() + { + return $this->agreement_details; + } + + /** + * Get Approval Link + * + * @return null|string + */ + public function getApprovalLink() + { + return $this->getLink(PayPalConstants::APPROVAL_URL); + } + + /** + * Create a new billing agreement by passing the details for the agreement, including the name, description, start date, payer, and billing plan in the request JSON. + * + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return Agreement + */ + public function create($apiContext = null, $restCall = null) + { + $payLoad = $this->toJSON(); + $json = self::executeCall( + "/v1/payments/billing-agreements/", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + $this->fromJson($json); + return $this; + } + + /** + * Execute a billing agreement after buyer approval by passing the payment token to the request URI. + * + * @param $paymentToken + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return Agreement + */ + public function execute($paymentToken, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($paymentToken, 'paymentToken'); + $payLoad = ""; + $json = self::executeCall( + "/v1/payments/billing-agreements/$paymentToken/agreement-execute", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + $this->fromJson($json); + return $this; + } + + /** + * Retrieve details for a particular billing agreement by passing the ID of the agreement to the request URI. + * + * @param string $agreementId + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return Agreement + */ + public static function get($agreementId, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($agreementId, 'agreementId'); + $payLoad = ""; + $json = self::executeCall( + "/v1/payments/billing-agreements/$agreementId", + "GET", + $payLoad, + null, + $apiContext, + $restCall + ); + $ret = new Agreement(); + $ret->fromJson($json); + return $ret; + } + + /** + * Update details of a billing agreement, such as the description, shipping address, and start date, by passing the ID of the agreement to the request URI. + * + * @param PatchRequest $patchRequest + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function update($patchRequest, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($patchRequest, 'patchRequest'); + $payLoad = $patchRequest->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}", + "PATCH", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * Suspend a particular billing agreement by passing the ID of the agreement to the request URI. + * + * @param AgreementStateDescriptor $agreementStateDescriptor + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function suspend($agreementStateDescriptor, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor'); + $payLoad = $agreementStateDescriptor->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}/suspend", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * Reactivate a suspended billing agreement by passing the ID of the agreement to the appropriate URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. + * + * @param AgreementStateDescriptor $agreementStateDescriptor + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function reActivate($agreementStateDescriptor, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor'); + $payLoad = $agreementStateDescriptor->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}/re-activate", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * Cancel a billing agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. + * + * @param AgreementStateDescriptor $agreementStateDescriptor + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function cancel($agreementStateDescriptor, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor'); + $payLoad = $agreementStateDescriptor->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}/cancel", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * Bill an outstanding amount for an agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. + * + * @param AgreementStateDescriptor $agreementStateDescriptor + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function billBalance($agreementStateDescriptor, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($agreementStateDescriptor, 'agreementStateDescriptor'); + $payLoad = $agreementStateDescriptor->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}/bill-balance", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * Set the balance for an agreement by passing the ID of the agreement to the request URI. In addition, pass a common_currency object in the request JSON that specifies the currency type and value of the balance. + * + * @param Currency $currency + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return bool + */ + public function setBalance($currency, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($this->getId(), "Id"); + ArgumentValidator::validate($currency, 'currency'); + $payLoad = $currency->toJSON(); + self::executeCall( + "/v1/payments/billing-agreements/{$this->getId()}/set-balance", + "POST", + $payLoad, + null, + $apiContext, + $restCall + ); + return true; + } + + /** + * List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI. + * + * @deprecated Please use searchTransactions Instead + * @param string $agreementId + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return AgreementTransactions + */ + public static function transactions($agreementId, $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($agreementId, 'agreementId'); + $payLoad = ""; + $json = self::executeCall( + "/v1/payments/billing-agreements/$agreementId/transactions", + "GET", + $payLoad, + null, + $apiContext, + $restCall + ); + $ret = new AgreementTransactions(); + $ret->fromJson($json); + return $ret; + } + + /** + * List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI. + * + * @param string $agreementId + * @param array $params Parameters for search string. Options: start_date, and end_date + * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. + * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls + * @return AgreementTransactions + */ + public static function searchTransactions($agreementId, $params = array(), $apiContext = null, $restCall = null) + { + ArgumentValidator::validate($agreementId, 'agreementId'); + ArgumentValidator::validate($params, 'params'); + + $allowedParams = array( + 'start_date' => 1, + 'end_date' => 1, + ); + + $payLoad = ""; + $json = self::executeCall( + "/v1/payments/billing-agreements/$agreementId/transactions?" . http_build_query(array_intersect_key($params, $allowedParams)), + "GET", + $payLoad, + null, + $apiContext, + $restCall + ); + $ret = new AgreementTransactions(); + $ret->fromJson($json); + return $ret; + } + +} Property changes on: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/Agreement.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementDetails.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementDetails.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementDetails.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,209 @@ +<?php + +namespace PayPal\Api; + +use PayPal\Common\PayPalModel; + +/** + * Class AgreementDetails + * + * A resource representing the agreement details. + * + * @package PayPal\Api + * + * @property \PayPal\Api\Currency outstanding_balance + * @property string cycles_remaining + * @property string cycles_completed + * @property string next_billing_date + * @property string last_payment_date + * @property \PayPal\Api\Currency last_payment_amount + * @property string final_payment_date + * @property string failed_payment_count + */ +class AgreementDetails extends PayPalModel +{ + /** + * The outstanding balance for this agreement. + * + * @param \PayPal\Api\Currency $outstanding_balance + * + * @return $this + */ + public function setOutstandingBalance($outstanding_balance) + { + $this->outstanding_balance = $outstanding_balance; + return $this; + } + + /** + * The outstanding balance for this agreement. + * + * @return \PayPal\Api\Currency + */ + public function getOutstandingBalance() + { + return $this->outstanding_balance; + } + + /** + * Number of cycles remaining for this agreement. + * + * @param string $cycles_remaining + * + * @return $this + */ + public function setCyclesRemaining($cycles_remaining) + { + $this->cycles_remaining = $cycles_remaining; + return $this; + } + + /** + * Number of cycles remaining for this agreement. + * + * @return string + */ + public function getCyclesRemaining() + { + return $this->cycles_remaining; + } + + /** + * Number of cycles completed for this agreement. + * + * @param string $cycles_completed + * + * @return $this + */ + public function setCyclesCompleted($cycles_completed) + { + $this->cycles_completed = $cycles_completed; + return $this; + } + + /** + * Number of cycles completed for this agreement. + * + * @return string + */ + public function getCyclesCompleted() + { + return $this->cycles_completed; + } + + /** + * The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format. + * + * @param string $next_billing_date + * + * @return $this + */ + public function setNextBillingDate($next_billing_date) + { + $this->next_billing_date = $next_billing_date; + return $this; + } + + /** + * The next billing date for this agreement, represented as 2014-02-19T10:00:00Z format. + * + * @return string + */ + public function getNextBillingDate() + { + return $this->next_billing_date; + } + + /** + * Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format. + * + * @param string $last_payment_date + * + * @return $this + */ + public function setLastPaymentDate($last_payment_date) + { + $this->last_payment_date = $last_payment_date; + return $this; + } + + /** + * Last payment date for this agreement, represented as 2014-06-09T09:42:31Z format. + * + * @return string + */ + public function getLastPaymentDate() + { + return $this->last_payment_date; + } + + /** + * Last payment amount for this agreement. + * + * @param \PayPal\Api\Currency $last_payment_amount + * + * @return $this + */ + public function setLastPaymentAmount($last_payment_amount) + { + $this->last_payment_amount = $last_payment_amount; + return $this; + } + + /** + * Last payment amount for this agreement. + * + * @return \PayPal\Api\Currency + */ + public function getLastPaymentAmount() + { + return $this->last_payment_amount; + } + + /** + * Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format. + * + * @param string $final_payment_date + * + * @return $this + */ + public function setFinalPaymentDate($final_payment_date) + { + $this->final_payment_date = $final_payment_date; + return $this; + } + + /** + * Last payment date for this agreement, represented as 2015-02-19T10:00:00Z format. + * + * @return string + */ + public function getFinalPaymentDate() + { + return $this->final_payment_date; + } + + /** + * Total number of failed payments for this agreement. + * + * @param string $failed_payment_count + * + * @return $this + */ + public function setFailedPaymentCount($failed_payment_count) + { + $this->failed_payment_count = $failed_payment_count; + return $this; + } + + /** + * Total number of failed payments for this agreement. + * + * @return string + */ + public function getFailedPaymentCount() + { + return $this->failed_payment_count; + } + +} Property changes on: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementDetails.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementStateDescriptor.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementStateDescriptor.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementStateDescriptor.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,65 @@ +<?php + +namespace PayPal\Api; + +use PayPal\Common\PayPalModel; + +/** + * Class AgreementStateDescriptor + * + * Description of the current state of the agreement. + * + * @package PayPal\Api + * + * @property string note + * @property \PayPal\Api\Currency amount + */ +class AgreementStateDescriptor extends PayPalModel +{ + /** + * Reason for changing the state of the agreement. + * + * @param string $note + * + * @return $this + */ + public function setNote($note) + { + $this->note = $note; + return $this; + } + + /** + * Reason for changing the state of the agreement. + * + * @return string + */ + public function getNote() + { + return $this->note; + } + + /** + * The amount and currency of the agreement. + * + * @param \PayPal\Api\Currency $amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + + /** + * The amount and currency of the agreement. + * + * @return \PayPal\Api\Currency + */ + public function getAmount() + { + return $this->amount; + } + +} Property changes on: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementStateDescriptor.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransaction.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransaction.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransaction.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,257 @@ +<?php + +namespace PayPal\Api; + +use PayPal\Common\PayPalModel; + +/** + * Class AgreementTransaction + * + * A resource representing an agreement_transaction that is returned during a transaction search. + * + * @package PayPal\Api + * + * @property string transaction_id + * @property string status + * @property string transaction_type + * @property \PayPal\Api\Currency amount + * @property \PayPal\Api\Currency fee_amount + * @property \PayPal\Api\Currency net_amount + * @property string payer_email + * @property string payer_name + * @property string time_stamp + * @property string time_zone + */ +class AgreementTransaction extends PayPalModel +{ + /** + * Id corresponding to this transaction. + * + * @param string $transaction_id + * + * @return $this + */ + public function setTransactionId($transaction_id) + { + $this->transaction_id = $transaction_id; + return $this; + } + + /** + * Id corresponding to this transaction. + * + * @return string + */ + public function getTransactionId() + { + return $this->transaction_id; + } + + /** + * State of the subscription at this time. + * + * @param string $status + * + * @return $this + */ + public function setStatus($status) + { + $this->status = $status; + return $this; + } + + /** + * State of the subscription at this time. + * + * @return string + */ + public function getStatus() + { + return $this->status; + } + + /** + * Type of transaction, usually Recurring Payment. + * + * @param string $transaction_type + * + * @return $this + */ + public function setTransactionType($transaction_type) + { + $this->transaction_type = $transaction_type; + return $this; + } + + /** + * Type of transaction, usually Recurring Payment. + * + * @return string + */ + public function getTransactionType() + { + return $this->transaction_type; + } + + /** + * Amount for this transaction. + * + * @param \PayPal\Api\Currency $amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + + /** + * Amount for this transaction. + * + * @return \PayPal\Api\Currency + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Fee amount for this transaction. + * + * @param \PayPal\Api\Currency $fee_amount + * + * @return $this + */ + public function setFeeAmount($fee_amount) + { + $this->fee_amount = $fee_amount; + return $this; + } + + /** + * Fee amount for this transaction. + * + * @return \PayPal\Api\Currency + */ + public function getFeeAmount() + { + return $this->fee_amount; + } + + /** + * Net amount for this transaction. + * + * @param \PayPal\Api\Currency $net_amount + * + * @return $this + */ + public function setNetAmount($net_amount) + { + $this->net_amount = $net_amount; + return $this; + } + + /** + * Net amount for this transaction. + * + * @return \PayPal\Api\Currency + */ + public function getNetAmount() + { + return $this->net_amount; + } + + /** + * Email id of payer. + * + * @param string $payer_email + * + * @return $this + */ + public function setPayerEmail($payer_email) + { + $this->payer_email = $payer_email; + return $this; + } + + /** + * Email id of payer. + * + * @return string + */ + public function getPayerEmail() + { + return $this->payer_email; + } + + /** + * Business name of payer. + * + * @param string $payer_name + * + * @return $this + */ + public function setPayerName($payer_name) + { + $this->payer_name = $payer_name; + return $this; + } + + /** + * Business name of payer. + * + * @return string + */ + public function getPayerName() + { + return $this->payer_name; + } + + /** + * Time at which this transaction happened. + * + * @param string $time_stamp + * + * @return $this + */ + public function setTimeStamp($time_stamp) + { + $this->time_stamp = $time_stamp; + return $this; + } + + /** + * Time at which this transaction happened. + * + * @return string + */ + public function getTimeStamp() + { + return $this->time_stamp; + } + + /** + * Time zone of time_updated field. + * + * @param string $time_zone + * + * @return $this + */ + public function setTimeZone($time_zone) + { + $this->time_zone = $time_zone; + return $this; + } + + /** + * Time zone of time_updated field. + * + * @return string + */ + public function getTimeZone() + { + return $this->time_zone; + } + +} Property changes on: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransaction.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransactions.php =================================================================== --- XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransactions.php (rev 0) +++ XoopsModules/xpayment/branches/wishcraft/paypal-rest-api/xpayment/class/gateway/paypalapi/PayPal/Api/AgreementTransactions.php 2015-10-13 21:07:36 UTC (rev 13161) @@ -0,0 +1,71 @@ +<?php + +namespace PayPal\Api; + +use PayPal\Common\PayPalModel; + +/** + * Class AgreementTransactions + * + * A resource representing agreement_transactions that is returned during a transaction search. + * + * @package PayPal\Api + * + * @property \PayPal\Api\AgreementTransaction[] agreement_transaction_list + */ +class AgreementTransactions extends PayPalModel +{ + /** + * Array of agreement_transaction object. + * + * @param \PayPal\Api\AgreementTransaction[] $agreement_transaction_list + * + * @return $this + */ + public function setAgreementTransactionList($agreement_transaction_list) + { + $this->agreement_transaction_list = $agreement_transaction_list; + return $this; + } + + /** + * Array of agreement_transaction object. + * + * @return \PayPal\Api\AgreementTransaction[] + */ + public function getAgreementT... [truncated message content] |