pronamic / wp-pay-core

Core components for the WordPress payment processing library. This library is used in the WordPress plugin Pronamic Pay: https://www.pronamicpay.com/, but also allows other plugin developers to set up a payment plugin.
https://www.wp-pay.org/
GNU General Public License v3.0
27 stars 3 forks source link

For new payment object multiple instances with same ID can exists #155

Closed remcotolsma closed 10 months ago

remcotolsma commented 10 months ago
$payment = new Payment();
$payment->save();

$payment_2 = \get_pronamic_payment( $payment->get_id() );

\var_dump( $payment === $payment_2 );
// result: false