#g4ppinv_cancelInvoice

 *//////////////////////////////////////////////////////////////*
 * #g4ppinv_cancelInvoice - Cancel the Invoice                  *
 *                                                              *
 * Output:                                                      *
 *   out_errMsg - The error message (if error exists).          *
 *                                                              *
 * Returns:                                                     *
 *   -1 for error, 0 for no error.                              *
 *                                                              *
 * Settable Variables ([r]=required)                            *
 *   account - PayPal Account ID [r]                            *
 *   number - Invoice Number. [r]                               *
 *   subject - Cancel Subject                                   *
 *   note - Cancel Note                                         *
 *   send_to_merchant - Send notification to merchant (true or  *
 *     false.  (default true)                                   *
 *   send_to_payer - Send notification to payer (true or        *
 *     false.  (default true)                                   *
 *   refund_value - Refund Amount                               *
 *   temporary_directory - Temporary directory to use for work  *
 *     files.  Default /tmp.                                    *
 *   reset - Reset Values After Call (*YES or *NO, Default *YES)*
 *   ccsid - The CCSID to use (1208)                            *
 *   debug - Turn on Debug (*NO, *YES)                          *
 *   debug_file - The debug file name.                          *
 *     (/tmp/g4pp_[account]_markInvoiceAsPaid)                  *
 *                                                              *
 *//////////////////////////////////////////////////////////////*
D #g4ppinv_cancelInvoice...
D                 PR            10i 0
D  out_errMsg                  256    Options(*NOPASS)

#g4ppinv_cancelInvoice is used to mark an invoice as cancelled.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables:

  • account - PayPal Account ID (required)
  • number - Invoice Number (required)
  • subject - Cancel Subject
  • note - Cancel Note
  • send_to_merchant - Send notification to merchant (true or false - default true)
  • send_to_payer - Send notification to payer (true or false - default true)
  • refund_value - Refund Amount
  • temporary_directory - Temporary directory to use for work files. Default /tmp.
  • reset - Reset Values After Call (*YES or *NO, Default *YES)
  • ccsid - The CCSID to use (1208)
  • debug - Turn on Debug (*NO, *YES, default *NO)
  • debug_file - The debug file name (default /tmp/g4pp_[account]_cancelInvoice)