New Shopify Certification now available: Liquid Storefronts for Theme Developers

recurring_application_charge api now working laravel package osiset/basic-shopify-api

jaydip5959
Shopify Partner
2 0 0

hi
Here i have on laravel SHOPIFY_API_VERSION = 2019-04. I have to enable biiling app but
when i run code Trying to get property 'recurring_application_charge' of non-object.

public function confirmationUrl()
{
// Begin the charge request
$charge = $this->api->rest(
'POST',
"/admin/{$this->plan->typeAsString(true)}.json",
["{$this->plan->typeAsString()}" => $this->chargeParams()]
)->body->{$this->plan->typeAsString()};

return $charge->confirmation_url;
}

->body->{$this->plan->typeAsString()}; this line geeting error.

Do you have idea how can solve this ?
sceenshort link : https://www.awesomescreenshot.com/image/30314681?key=35acd6021b5a86f8313390c09dae6e03

Replies 0 (0)