Updated checkout to wait for backend confirmation before advancing, added a “Processing payment…” state with retry/ refresh fallback, and now use Paddle totals/currency for purchase records + confirmation emails (with new email translations).
This commit is contained in:
@@ -28,6 +28,14 @@ class PaddleSubscriptionService
|
||||
*/
|
||||
public function metadata(array $subscription): array
|
||||
{
|
||||
return Arr::get($subscription, 'data.metadata', []);
|
||||
$customData = Arr::get($subscription, 'data.custom_data');
|
||||
|
||||
if (is_array($customData)) {
|
||||
return $customData;
|
||||
}
|
||||
|
||||
$metadata = Arr::get($subscription, 'data.metadata');
|
||||
|
||||
return is_array($metadata) ? $metadata : [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user