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
34 stars 14 forks source link

WordPress REST API endpoints for gateways, payment methods and extensions #202

Open remcotolsma opened 2 years ago

remcotolsma commented 2 years ago

https://github.com/pronamic/wp-pronamic-pay/blob/6.9.6/pronamic-ideal.php

Can be useful for our own marketing websites.

Pending https://github.com/pronamic/wp-pronamic-pay/issues/154.

remcotolsma commented 2 years ago

In https://github.com/pronamic/wp-pronamic-pay/issues/231#issuecomment-933495899 and https://github.com/pronamic/wp-pay-core/commit/67175912057a65d7e9d47cf7e25147dd83a67a27 we introduced the /wp-json/pronamic-pay/v1/gateways/:gateway_id endpoint to retrieve a functional gateway based on a gateway configuration post ID. We therefore have to look for another endpoint for a REST API endpoint for purely the gateway integrations that we support. We (@rvdsteege and I) talked about /wp-json/pronamic-pay/v1/integrations/gateways.