# give/4.16.9/src/Framework/PaymentGateways/Contracts/Subscription/SubscriptionPaymentMethodEditable.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 23 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/PaymentGateways/Contracts/Subscription/SubscriptionPaymentMethodEditable.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/PaymentGateways/Contracts/Subscription/SubscriptionPaymentMethodEditable.php
- Modified: 2022-08-18T18:28:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/PaymentGateways/Contracts/Subscription/SubscriptionPaymentMethodEditable.php#L10-L20`.

```php
<?php

namespace Give\Framework\PaymentGateways\Contracts\Subscription;

use Give\Subscriptions\Models\Subscription;

/**
 * @since 2.20.0
 */
interface SubscriptionPaymentMethodEditable
{
    /**
     * Update subscription payment method.
     *
     *
     * @since 2.21.2 Second parameter has been made required.
     *             For example a developer can use "givewp_donor_dashboard_edit_subscription_payment_method_gateway_data_{$gateway->getId()}" filter
     *             To provide payment method request data to gateway before updating payment method (filter is in recurring donations  add-on).
     * @since 2.20.0
     */
    public function updateSubscriptionPaymentMethod(Subscription $subscription, $gatewayData);
}

```
