This plugin enhances the WooCommerce checkout experience by adding a “National Address Short Code” field. When a customer enters their 8-character short code, the plugin communicates with the OTO National Address API to fetch and automatically populate the checkout address fields (City, District, Street Address, etc.).
This plugin connects to the OTO API to validate Saudi Arabian National Address short codes and retrieve address details during WooCommerce checkout.
The OTO National Address API validates 8-character Saudi National Address short codes (e.g., ABCD1234) and returns the corresponding address information including city, district, street name, building number, and postal code. This data is used to automatically populate checkout address fields for customers in Saudi Arabia.
During plugin authentication (admin settings page):
– Email address and password are sent to authenticate with the OTO API
– If 2FA is enabled, the one-time password (OTP) code is also sent
– A refresh token is returned and stored to maintain the connection
During checkout validation (when customer enters a short code):
– The National Address short code entered by the customer is sent to the API
– An access token (obtained via the stored refresh token) is sent for authentication
– Address data is returned and used to populate checkout fields
This service is provided by OTO Global.