#g4ppinv_setBillingValue

 *//////////////////////////////////////////////////////////////*
 * #g4ppinv_setBillingValue - Set Value of Billing Record        *
 *                                                              *
 * Input:                                                       *
 *   in_parameter (required) - The parameter name.              *
 *   in_value (required) - The value of the parameter.          *
 *   in_index (optional) - The index of the Billing Record      *
 *     to update.                                               *
 *                                                              *
 * Output:                                                      *
 *   out_errMsg - The error message (if error exists).          *
 *                                                              *
 * Returns:                                                     *
 *   -1 for error, 0 for no error.                              *
 *                                                              *
 * Settable Variables ([r]=required)                            *
 *   email - EMail Address [r]                                  *
 *   first_name - First Name                                    *
 *   last_name - Last Name                                      *
 *   business_name - Business Name                              *
 *   address1 - Address Line 1                                  *
 *   address2 - Address Line 2                                  *
 *   city - City                                                *
 *   country_code - 2 Character Country Code (Default US)       *
 *     https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2         *
 *     #Officially_assigned_code_elements                       *
 *   postal_code - Postal Code                                  *
 *   state - State                                              *
 *   phonecc - Phone Country Code (Default 1)                   *
 *   phone - Phone Number                                       *
 *   language - Language (Default en_US)                        *
 *     da_DK, de_DE, en_AU, en_GB, en_US, es_ES, es_XC,         *
 *     fr_CA, fr_FR, fr_XC, he_IL, id_ID, it_IT, ja_JP,         *
 *     nl_NL, no_NO, pl_PL, pt_BR, pt_PT, ru_RU, sv_SE,         *
 *     th_TH, tr_TR, zh_CN, zh_HK, zh_TW, zh_XC                 *
 *   additional_info - Additional Info for Invoice              *
 *   sms_phonecc - SMS Phone Country Code (Default 1)           *
 *   sms_phone - SMS Phone Number (when notification channel    *
 *     is SMS.                                                  *
 *   notification_channel - Notification Channel                *
 *     EMAIL or SMS (may not be supported any more)             *
 *                                                              *
 *//////////////////////////////////////////////////////////////*
D #g4ppinv_setBillingValue...
D                 PR            10i 0
D  in_parameter                256    Varying Value
D  in_value                  65535    Varying Value
D  in_index                     10i 0 Options(*NOPASS)
D  out_errMsg                  256    Options(*NOPASS)

#g4pp_setBillingValue is used to set specific Billing Record information for the current Billing Index. You must call #g4ppinv_createBilling() prior to setting any billing values.

Returns: 0 for success, -1 for error.

Required Parameters:

  • Parameter Name (input)
  • Parameter Value (input)

Optional Parameters:

  • Billing Record Index (input) - Pass in an optional index to update a specific billing record. Default is to update the current billing record.
  • Error Message (output) - Error message

Settable Variables:

  • email - Billing EMail Address
  • first_name - Billing First Name
  • last_name - Billing Last Name
  • business_name - Billing Business Name
  • address1 - Billing Address Line 1
  • address2 - Billing Address Line 2
  • city - Billing City
  • country_code - 2 Character Billing Country Code (Default US)
  • postal_code - Billing Postal Code
  • state - Billing State
  • phonecc - Billing Phone Country Code (Default 1)
  • phone - Billing Phone Number
  • language - Billing Language (Default en_US)
    • da_DK, de_DE, en_AU, en_GB, en_US, es_ES, es_XC,
    • fr_CA, fr_FR, fr_XC, he_IL, id_ID, it_IT, ja_JP,
    • nl_NL, no_NO, pl_PL, pt_BR, pt_PT, ru_RU, sv_SE,
    • th_TH, tr_TR, zh_CN, zh_HK, zh_TW, zh_XC
  • additional_info - Additional Info for Invoice
  • sms_phonecc - SMS Phone Country Code (Default 1)
  • sms_phone - SMS Phone Number (when notification channel is SMS).
  • notification_channel - Notification Channel EMAIL or SMS (may not be supported by PayPal)