Closed remcotolsma closed 3 years ago
In many places we use config_id
like this: $gateway = Plugin::get_gateway( $payment->get_config_id() );
. We could also consider to change it to $gateway = $payment->get_gateway()
:
payment {
"gateway": {
"$ref": "http://pay.local/wp-json/pronamic-pay/v1/gateways/50",
"post_id": "50"
}
}
In https://github.com/pronamic/wp-pronamic-pay/issues/196 i suggested to store more gateway configuration within each payment / subscription. Maybe we can already take this into account within this issue?
@rvdsteege ?