Skip to content

Commit

Permalink
docs(core): Fix PaymentMethodHandler docs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 24, 2020
1 parent 0121484 commit af76358
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export interface PaymentMethodConfigOptions<T extends PaymentMethodArgs = Paymen
*
* @example
* ```ts
* import { PaymentMethodHandler, CreatePaymentResult, SettlePaymentResult, LanguageCode } from '\@vendure/core';
* // A mock 3rd-party payment SDK
* import gripeSDK from 'gripe';
*
Expand All @@ -181,7 +182,7 @@ export interface PaymentMethodConfigOptions<T extends PaymentMethodArgs = Paymen
* args: {
* apiKey: { type: 'string' },
* },
* createPayment: async (order, args, metadata): Promise<PaymentConfig> => {
* createPayment: async (order, args, metadata): Promise<CreatePaymentResult> => {
* try {
* const result = await gripeSDK.charges.create({
* apiKey: args.apiKey,
Expand Down

0 comments on commit af76358

Please sign in to comment.