| Index: components/payments/content/payment_app.mojom
|
| diff --git a/components/payments/content/payment_app.mojom b/components/payments/content/payment_app.mojom
|
| index a980ddcf8a8b14ba0cfdd6c28bcb1e9a9492669f..f24f1063f202efbfe3fed91db9ae16a123d02b84 100644
|
| --- a/components/payments/content/payment_app.mojom
|
| +++ b/components/payments/content/payment_app.mojom
|
| @@ -28,12 +28,31 @@ struct PaymentAppManifest {
|
| array<PaymentAppOption> options;
|
| };
|
|
|
| +enum PaymentHandlerStatus {
|
| + SUCCESS,
|
| + NOT_IMPLEMENTED,
|
| + NOT_FOUND,
|
| + NO_ACTIVE_WORKER,
|
| + STORAGE_OPERATION_FAILED,
|
| +};
|
| +
|
| +struct PaymentInstrument {
|
| + string name;
|
| + array<string> enabled_methods;
|
| + string stringified_capabilities;
|
| +};
|
| +
|
| interface PaymentManager {
|
| Init(string service_worker_scope);
|
| SetManifest(PaymentAppManifest payment_app_manifest)
|
| => (PaymentAppManifestError error);
|
| GetManifest()
|
| => (PaymentAppManifest payment_app_manifest, PaymentAppManifestError error);
|
| +
|
| + SetPaymentInstrument(string instrumentKey, PaymentInstrument instrument)
|
| + => (PaymentHandlerStatus status);
|
| + GetPaymentInstrument(string instrumentKey)
|
| + => (PaymentInstrument instrument, PaymentHandlerStatus status);
|
| };
|
|
|
| struct PaymentAppRequest {
|
|
|