Fix File
•
/
home
/
sportsfe...
/
public_h...
/
wp-conte...
/
plugins
/
wpforms-...
/
src
/
Integrat...
/
Stripe
/
Api
/
Webhooks
•
File:
CustomerSubscriptionCreated.php
•
Content:
<?php namespace WPForms\Integrations\Stripe\Api\Webhooks; use RuntimeException; /** * Webhook customer.subscription.created class. * * @since 1.8.4 */ class CustomerSubscriptionCreated extends Base { /** * Handle the Webhook's data. * * @since 1.8.4 * * @throws RuntimeException If payment not found or not updated. * * @return bool */ public function handle() { $this->delay(); $payment = wpforms()->get( 'payment' )->get_by( 'subscription_id', $this->data->id ); if ( ! $payment ) { return false; } if ( ! wpforms()->get( 'payment' )->update( $payment->id, [ 'subscription_status' => 'active' ] ) ) { throw new RuntimeException( 'Payment not updated' ); } wpforms()->get( 'payment_meta' )->add_log( $payment->id, 'Stripe subscription was set to active.' ); return true; } }
•
Search:
•
Replace:
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List