You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to create subscription with paypal and I want to have EU vat.
I have developed it in three steps, based on the documentation you provide. If I execute these steps one by one manually with a delay everything works fine. If I execute these steps sequentially the address is not updated and for that reason it does not calculate the EU vat. Please provide me some help.
The steps of my code are:
step 1 update billing info with recurly token
final public static function update_billing_info( $id, $recurly_token )
{
self::init_recurly();
$billing_info = new Recurly_BillingInfo();
$billing_info->account_code = $id;
$billing_info->token_id = $recurly_token;
try{
$billing_info->update();
}
catch( Recurly_Error $e ){
throw new Error( $e->getMessage(), 0 , Error::RECURLY_ERROR );
}
return true;
}
step 2 update only address billing info:
final public static function update_billing_info_address( $id, $address)
{
self::init_recurly();
$billing_info = new Recurly_BillingInfo();
$billing_info->account_code = $id;
$billing_info->address1 = $address['address'];
$billing_info->city = $address['city'];
$billing_info->country = $address['country'];
$billing_info->zip = $address['zip'];
try{
$billing_info->update();
}
catch( Recurly_Error $e ){
throw new Error( $e->getMessage(), 0 , Error::RECURLY_ERROR );
}
return true;
}
I find the solution, with help of recurly's support. My fault was the first step because I updated the billing info but the right way is to create billing info first so I change that:
I try to create subscription with paypal and I want to have EU vat.
I have developed it in three steps, based on the documentation you provide. If I execute these steps one by one manually with a delay everything works fine. If I execute these steps sequentially the address is not updated and for that reason it does not calculate the EU vat. Please provide me some help.
The steps of my code are:
step 1 update billing info with recurly token
step 2 update only address billing info:
step 3 create subscription
The text was updated successfully, but these errors were encountered: