pronamic / wp-pronamic-pay

The Pronamic Pay plugin allows you to easily accept payments with payment methods like credit card, iDEAL, Bancontact and Sofort through a variety of payment providers on your WordPress website.
https://pronamicpay.com
35 stars 14 forks source link

Document JSON? #246

Closed remcotolsma closed 1 year ago

remcotolsma commented 3 years ago

Nice to know:

SELECT
    ID,
    post_content->"$.customer.name",
    post_content
FROM
    wp_2_posts
WHERE
    post_type = 'pronamic_payment'
        AND
    post_mime_type = 'application/json'
        AND
    post_content->"$.total_amount.value" > 200
;

Originally posted by @remcotolsma in https://github.com/pronamic/wp-pronamic-pay/issues/218#issuecomment-932111106

remcotolsma commented 3 years ago

Made a small start with https://github.com/pronamic/wp-pay-core/blob/develop/json-schemas/payment.json.