Repository navigation
Prepare the release: sandbox smoke test, release workflows, community files - #9
Merged
Merged
Conversation
SimplePay's sandbox refuses a Request to Pay refund without originalTotal (5020), so the refund request takes it as a required argument. It also refuses a reversal that names a package (5111), so RtpRef no longer has a Package variant: a batch is reversed request by request.
The tests are ignored by default and take the merchant account from the environment. They start transactions without paying them, and check that SimplePay accepts the package's requests, signs every response and answers in the shape the package reads.
A published GitHub release publishes the crate to crates.io with Trusted Publishing and writes its notes into the changelog. CI also builds the crate from the packaged files alone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mi változott
Sandbox-füstteszt (
tests/sandbox.rs)#[ignore]) teszt, amely a SimplePay valódi sandboxát hívja a környezetből kapott kereskedői fiókkal. A SimplePay által a szerződés előtti teszteléshez közzétett demófiókokra készült.start(alap, minden opcionális mezővel, kártyaregisztráció tokenekkel, tört összeg euróban),status,query,cancel,finish,starteam,do,dorecurring,cardquery,cardcancel,tokenquery,tokencancel, RTPstart,do,query,refund,reverse.SimplePay_Rust_SDK_2.1_LaravelsdkVersion-t, a JSON-számként küldött összegeket és a timeout-formátumot, és a hibaválaszokat is aláírja, tehát a kötelező válasz-aláírás minden próbált végponton tartható.Amit a sandbox kimutatott, és javítva lett
originalTotalnélkül a SimplePay5020-as hibával utasítja el, ezért azRtpRefundRequest::newés afor_orderkötelező argumentumként kéri (a setter megszűnt). A rendelési hivatkozással megnevezett visszatérítést a sandbox elfogadja.5111-es hibával utasítja el, ezért azRtpRef::Packagemegszűnt; egy csomagot a kérelmei lekérdezésével, egyenként lehet visszavonni. A rendelési hivatkozás szerinti visszavonás működik.REVERSED; az elindított azonnali fizetés a sandboxban rögtönINPAYMENT, ezért ott a megszakítását a rendszer elutasítja.Kiadás
.github/release.yml: a GitHub által generált kiadási jegyzet kategóriái a PR-címkék szerint, a PHP-csomaggal megegyezően..github/workflows/publish.yml: közzétett GitHub-kiadásra fut; ellenőrzi, hogy a címke aCargo.tomlverziója, majd Trusted Publishinggel (tárolt token nélkül, areleasekörnyezetben) publikál a crates.io-ra. A crates.io-n már meglévő verziót kihagyja..github/workflows/update-changelog.yml: a kiadási jegyzetet beírja aCHANGELOG.md-be amainágon. A changelog „Unreleased” fejléce összehasonlító link lett, így az első kiadástól a workflow tartja karban.publish = falseaCargo.toml-ban marad: amíg ott van, a publikáló workflow sem tud feltölteni semmit.AGENTS.mdRelease szakaszában vannak.cargo package --locked --all-features).Közösségi fájlok
.github/SECURITY.md,.github/CONTRIBUTING.md,.github/ISSUE_TEMPLATE/bug.yml, és a README Testing, Contributing, Security szakaszai.