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

Payment Processor CURL Sample #4

Open
stevebab opened this issue Oct 24, 2024 · 0 comments
Open

Payment Processor CURL Sample #4

stevebab opened this issue Oct 24, 2024 · 0 comments

Comments

@stevebab
Copy link

Working on a plugin for "Transact" Hosted Checkout using this skeleton.

They are requiring headers be added to the post, like this:

curl --request POST \
  --url https://commerce.cashnet.com/rapidcheckout/api/session \
  --header 'Accept: application/json' \
  --header 'Authorization: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "session": {
    "merchantCode": "VC_CAMPUS",
    "mode": "pay",
    "cart": {
      "amount": 12345
    }
  }
}'

How can I add headers to the php __construct function?

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

No branches or pull requests

1 participant