Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

NVP reply would be great as a dictionary

Open
#18 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
php
Domain
payments

Research direction

Start in the NVP client response handling and compare it with how request values are represented. Update the response handling so the returned NVP fields can be accessed by name as a dictionary, and verify that the existing response values remain correctly separated and available.

Written by the indexing model from the issue text.

Description

Right now its just a big string. Some simple processing in the NVP client could return an array. e.g.

$reply_array = explode("\n", $reply);

foreach($reply_array as $val) {
$item_array = explode("=", $val, 2);
$reply_dictionary[$item_array[0]] = $item_array[1];
}

now you can access the reply just like the request: $reply['name']

Dominant language
PHP
Stars
60
Forks
59
PR merge metrics
No merged PRs in 30d

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CyberSource/cybersource-sdk-php

All issues in CyberSource/cybersource-sdk-php

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.