So if user is updating payment meta but not updating payment object, then payment meta values will not reflect/changes on payment meta automatically
and you can still access payment meta old value in any old payment object ( previously created ) which can cause to show or save wrong payment data.
To prevent that user can use this function after updating any payment meta value ( in bulk or single update ).
public update_payment_setup ( integer $payment_id ) : void | ||
$payment_id | integer | Payment ID. |
return | void |