PaymentAdditionalInformationProviderInterface.php 878 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\PaymentMethodIntegration;
  7. use Magento\Vault\Api\Data\PaymentTokenInterface;
  8. /**
  9. * Provides mechanism to set specific payment additional information when payment method used with instant purchase.
  10. *
  11. * May implement any logic specific for a payment method and configured with
  12. * instant_purchase/additionalInformation configuration option in vault payment config.
  13. *
  14. * @api
  15. * @since 100.2.0
  16. */
  17. interface PaymentAdditionalInformationProviderInterface
  18. {
  19. /**
  20. * Provides additional information part specific for payment method.
  21. *
  22. * @param PaymentTokenInterface $paymentToken
  23. * @return array
  24. * @since 100.2.0
  25. */
  26. public function getAdditionalInformation(PaymentTokenInterface $paymentToken): array;
  27. }