The payment gateways API allows you to view, and update individual payment gateways. Results are not paginated - all gateways will be returned.
This API lets you retrieve and view a specific payment gateway.
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.retrievePaymentGateway({@required String id}).then( (paymentGateWay) {
print(paymentGateWay.toJson());
});
});
ApiData instance
Represents the following object - WooCommerce retrieve an payment gateway
This API helps you to view all the payment gateways.
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.getPaymentGateways().then( (apiData) {
print(apiData.toJson());
});
});
List<PaymentGateWay> instance
Represents the following object - WooCommerce list all payment gateways
This API lets you make changes to a payment gateway.
@required String id,
Map<String, dynamic> data
// CONFIG FOR WOOSIGNAL
var wsConfig = {
"appKey":"your app key",
"debugMode":true
};
// CREATING AN INSTANCE
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
wcStore.updatePaymentGateway(
{@required String id, Map<String, dynamic> data}
).then( (paymentGateWay) {
print(paymentGateWay.toJson());
});
});
PaymentGateWay instance
Represents the following object - WooCommerce update a payment gateway