import { DaffPaypalFacade } from '@daffodil/paypal/state'
@Injectable()
class DaffPaypalFacade implements DaffPaypalFacadeInterface {
paypalStartUrl$: Observable<string>
paypalEditUrl$: Observable<string>
loading$: Observable<boolean>
error$: Observable<DaffStateError>
dispatch(action: Action<string>): void
}
Observable| Default | – |
|---|---|
| Description | A URL for the PayPal login page. |
Observable| Default | – |
|---|---|
| Description | A PayPal URL that allows a customer to edit their checkout details. |
Observable| Default | – |
|---|---|
| Description | The loading state for retrieving a single paypal. |
Observable<DaffStateError>| Default | – |
|---|---|
| Description | Errors associated with retrieving a single paypal. |
voidDispatches the given action.
| Parameter | action: Action |
|---|---|
| Description | action to dispatch. |