Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for MOTO via WPF #14

Closed

Conversation

mrploddy1981
Copy link

Small additions to the WPF Create request to allow for WPF to process MOTO transactions

  • Adds MotoAttributes trait to WPF Create
  • Adds MOTO transaction type attribute to addTransactionType method

Before merging the PR make sure the following are checked:

  • Good commit messages are used.
  • Commit message starts with {f|b}{year}{month}{day}{num}, e.g. f2016071101
  • Necessary specs are added.
  • All specs are passing.
  • The PHP code style complies with the PSR-2 recommendation
  • All automated or manual PR comments are resolved or proper explanation is included for the given change
  • The PR relates to only one subject with a clear title

Small additions to the WPF Create request to allow for WPF to process MOTO transactions
@dyd
Copy link
Member

dyd commented Jan 6, 2022

Hello @mrploddy1981,

Thank you very much for the suggested feature. We will investigate if the moto attribute is appropriate inside the WPF parameters structure.
You can attach the moto attribute for a specific Transaction Type by adding a custom attribute to it with this sample:

->addTransactionType(
    'authorize',
    [
        'moto' => true
    ]
)

A full list of the custom attributes can be found here: https://emerchantpay.github.io/gateway-api-docs/?shell#wpf-transaction-types

@mrploddy1981
Copy link
Author

@dyd

I'm currently doing a integration and had a requirement to be able to process MOTO payments using the WPF. This is because I didn't want to have to go to SAQ-D level compliance for server 2 server comms.

This is because it's for a travel booking / reservation system where our clients want to be able to do MOTO payments from within our system without having to log in to your merchant back end to process the MOTO payment (eg they have a client on the phone and they want to make a phone payment)

I tried your suggestion and it does actually work so in fact the only thing that's needed to enable MOTO for WPF is to add the MotoAttributes to the use statement. The modifications to the addTransactionType are not required.

This has been tested and confirmed to be working perfectly by support - if you want more information please ask Yordan / Alejandros in support as they are who I'm currently dealing with.

based on suggestions by @dyd have removed the extra code so only the addition of MotoAttributes to the use statement is required to enable Moto via the WPF
@mrploddy1981
Copy link
Author

@dyd Have updated my pull reques tto remove the unecessary code based on your suggestion.

@dyd
Copy link
Member

dyd commented Jan 10, 2022

Hello @mrploddy1981,

We discussed the case with the assigned people from Tech Support.
You can use the suggested way of assigning a custom attribute to the specific transaction type inside the WPF -> #14 (comment)

I hope this helps. I am closing the PR. No changes are required.

@dyd dyd closed this Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants