2

I need to know what kind of partial things are possible in Magento ?

Like we say Partial Payment / Partial Invoice / Partial Refund

If any of the above is possible then how can I implement it ?

Thanks !!!

1 Answer 1

3

Creating Patial Invoice and Partial Refund is possible in Magento. During development payment method you should extend it from Mage_Payment_Model_Method_Abstract.

This class has properties $_canCapturePartial and $_canRefundInvoicePartial.

By default they are false. Redefine them in your payment method and set to true.

Now in backend you will have ability to create partial Invoice and Refund. From developer point of view will be called the same funtions of your method capture and refund.

11
  • Thanks for your response. Could you pls let me know after setting them to true where can I see the partial buttons ? And is Partial Payment also possible ?
    – Mark
    Commented Mar 7, 2014 at 9:14
  • You can find them in admin order edit page. What do you mean under Partial Payment? Commented Mar 7, 2014 at 9:20
  • $_canCapturePartial and $_canRefundInvoicePartial are set to true and nothing is changed. Still I am not able to create or select any option from edit order which allows me to build partial invoice.Please guide.
    – Mark
    Commented Mar 7, 2014 at 9:34
  • During creating invoice can you edit items amount? Commented Mar 7, 2014 at 9:47
  • 1
    It means that during capture magento creates offline invoice. Without sending any request to payment method. In this case the value of $_canCapturePartial is ignored because you can always create partial invoice offline. Commented Mar 7, 2014 at 11:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.