Hi Alex,
Had the same problem, seems like the padloper input names have changed. They are now camelcase. The specific problem comes from shippingAddressCountry. It can't find the country.
$customFormFields = [
// first name
[
// the name of the input of the custom form
'input_name' => 'firstName',
// the input type (for sanitization)
// @todo: @note: for selects and checkbox, use the expected value type
'type' => 'text',
// if field/input is required
'required' => true
],
// last name
[
'input_name' => 'lastName',
'type' => 'text',
'required' => true
],
// email
[
'input_name' => 'email',
'type' => 'email',
'required' => true
],
// address line one
[
'input_name' => 'shippingAddressLineOne',
'type' => 'text',
'required' => true
],
// address line two
[
'input_name' => 'shippingAddressLineTwo',
'type' => 'text',
],
// city/town
[
'input_name' => 'shippingAddressCity',
'type' => 'text',
'required' => true
],
// postcode
[
'input_name' => 'shippingAddressPostalCode',
'type' => 'text',
'required' => true
],
// country
[
'input_name' => 'shippingAddressCountry',
// @note: country ID, hence integer!
'type' => 'integer',
'required' => true
],
// region/state/province
[
'input_name' => 'shippingAddressRegion',
'type' => 'text'
],
// ------------------------
// SPECIAL (NON-ALIASED)
// PAYMENT TYPE/CLASS
// @todo: @note: name might change!
[
'input_name' => 'padloper_order_payment_id',
'type' => 'integer',
'required' => true
],
];