UML class

Payment providers

UML class diagram with 4 elements.uses«iface»PaymentProvidercharge(amount): Receiptrefund(id): voidStripeProvider- apiKey: string+ charge(amount)AdyenProvider- merchant: string+ charge(amount)CheckoutService- provider: PaymentProvider+ pay(order)